car2pol | R Documentation |
Convert 2D/3D Cartesian to polar/cylindrical coordinates
car2pol(x)
x |
2/3-vector or n-by-2/3 matrix representing the Cartesian components x,y,(z) of n two/three-dimensional vectors |
Returns a 2/3-vector or a n-by-2/3 matrix representing the polar/cylindrical coordinates r,phi,(z), where phi=0...2*pi is the azimuth measured positively from the x-axis.
Danail Obreschkow
pol2car
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.