Did anyone know about cart2pol function in Matlab?
[THETA,RHO] = cart2pol(X,Y)
It means change the cartesian coordinates x and y to polar coordinates. Before applying this method, I think there should be a list of x and y coordinate in the system in order to change it into polar coordinate.
Now, the problem is, if I use meshgrid, the domian is incorrect, it included the coordinate which I do not want (and excluded the coordinate which I want).
Can anyone tell me or teach me how to fix the problem by writting a command code, to specify the range of x and y correctly? Or should I use pol2cart function? change the polar coordinate to cartesian coordinate, then use those cartesian coordinate to plot my graph.
(Please refer to the attachment for a clearer description)
(36864 Bytes |
downloaded 136 times)