Question: SOLVE IN MATLAB In polar coordinates a two-dimensional vector is y given by its radius and angle (r, theta). Write a user- defined MATLAB function
SOLVE IN MATLAB
In polar coordinates a two-dimensional vector is y given by its radius and angle (r, theta). Write a user- defined MATLAB function that adds two vectors that are given in polar coordinates. For the function name and arguments use [r th] = AddVecPol(r1, th1, r1, th2), where the input arguments (r_1, theta_1), and (r_2, theta_2), and the output arguments are the radius and angle of the result. Use the function to carry out the following additions: (a) r_1 = (5, 23 degree), r, -(12, 40 degree). (b) r1 = (6, 80 degree), r_2= (15, 125 degree)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
