Question: Make a Matlab function for the coordinate conversion between the Cartesian (x, y) to the Polar coordinates (r, ) as requested in the textbook. Also,

Make a Matlab “function” for the coordinate conversion between the Cartesian (x, y) to the Polar coordinates (r, θ) as requested in the textbook. Also, test your program by evaluating the cases in the next images.


3.6 Two distances are required to specify the location of a point

relative to an origin in two-dimensional space (Fig. P3.6): The horizontal and

vertical distances (x, y) in Cartesian coordinates. The radius and angle (r,

3.6 Two distances are required to specify the location of a point relative to an origin in two-dimensional space (Fig. P3.6): The horizontal and vertical distances (x, y) in Cartesian coordinates. The radius and angle (r, 0) in polar coordinates. It is relatively straightforward to compute Cartesian coordi- nates (x, y) on the basis of polar coordinates (r, 0). The reverse process is not so simple. The radius can be computed by the following formula: r = Vx? + y? If the coordinates lie within the first and fourth coordi- nates (i.e., x > 0), then a simple formula can be used compute 0: 0 = tan

Step by Step Solution

3.50 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The Matlab function is given below function r theta cartesianto... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!