Question: Module 7: Prog 1 In polar coordinates a two-dimensional vector is y. given by its radius and angle (r.0). Write a user- defined MATLAB function
Module 7: Prog 1 In polar coordinates a two-dimensional vector is y. given by its radius and angle (r.0). Write a user- defined MATLAB function that adds two vectors that are given in polar coordinates. For the func- tion name and arguments use [r th] = AddVecpol (ri, th1, 12, th2). Te where the input arguments are (r, 0,) and (2,0,), and the output arguments are the radius and angle of the result. Use the function to carry out the following additions: (a) = (5, 23), ra = (12, 40). () n = (6, 80). V = (15, 125)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
