Question: In polar coordinates a two-dimensional vector is given by its radius and angle (r, e). Write a user-defined MATLAB function that adds two vectors that
[r th] = AddVecPol (rl, thl, r2, th2),
where the input arguments are (r1, θ1) and (r2, θ2), and the output arguments are the radius and angle of the result. Use the function to carry out the following additions:
(a) r1 = (5, 23°), r2 = (12, 40°)
(b) r1 = (6, 80°), r2 = (15, 125°)
.png)
r2 2
Step by Step Solution
3.42 Rating (184 Votes )
There are 3 Steps involved in it
Script file dispPart a r15 th123 r212 th240 r th AddVecPolr1th1r2t... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (741).docx
120 KBs Word File
