Question: Problem 15: A vector can be represented by either its rectangular coordinates (x and y) or by its polar coordinates (r and ). For positive
Problem 15: A vector can be represented by either its rectangular coordinates (x and y) or by its polar coordinates (r and ). For positive values of x and y, the conversion from rectangular to polar coordinates in the range from 0 to 2nt are given by: r= x2 + y2 = tan-16/x) Write a Function M-file (called recpol.m) that receives as input the rectangular coordinates (x and y) and returns as output the polar coordinates (r and 6). Write a script file to find values of r and returned by recpol function when x = 3 and y = 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
