Question: 1 . Develop a MATLAM function named rectangular ( R , theta ) to convert a given polar coordinate to rectangular coordinate using the
Develop a MATLAM function named rectangularRtheta to convert a given polar coordinate to rectangular coordinate using the following expressions,
X Rcostheta Y Rsintheta
Where R is the radius, and theta is the angle in degree with the positive xaxis. R and theta also can also be vectors., which means you should use elementbyelement multiplications.
Use fprintfor disp statement Inside the function to output the result as XYi
If you run the function rectangular from the command window you will get the following result.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
