Question: Write a Matlab function cart2pol(x,y) that will convert a data point given in Cartesian coordinates (x,y) to polar coordinates (r, ). The radius can be

Write a Matlab function cart2pol(x,y) that will convert a data point given in Cartesian coordinates (x,y) to polar coordinates (r, ). The radius can be computed using-yx21. If = tan-1 ( ) , the angle can be computed using the following possibilities: /2 3 /2 Positive 0 Positive Negative Positive Negative 0 Positive Negative Positive Positive Negative Negative Negative +
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
