Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
From cartesian to polar with points
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi If i have 100 points that define vectors in this way: V=[a1,b1;a2,b2;a3,b3;a4,b4...] a1, b1 is the location of starting point a2,b2 is the location of ending points and in this way I defined the first vector (line)
a3, b3 is the location of 2nd starting point a4,b4 is the location of 2nd ending points
...
How i can convert these vectors (not from axis origin) into polar coordinates? If I use point by point it's calculated for each point from the origin.
Thanks
0 Commenti
Risposte (1)
  Babak
      
 il 13 Mag 2013
         vectors = V(2:2:end) - V(1:2:end);
 % vector has half the size(1) of V
 X = vector(:,1);
 Y = vector(:,2);
 [THETA,RHO] = cart2pol(X,Y);
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

