Question: Write a Matlab function that converts a phasor from the rectangular coordinates (5 + 2) into angle notation (magnitude/angle). The function should calculate the angle

Write a Matlab function that converts a phasor from the rectangular coordinates (5 + 2) into angle notation (magnitude/angle). The function should calculate the angle of the phasor in degrees. Matlab can be used to perform phasor math in rectangular coordinates. The result can then be converted into angle notation with your function. Test your function by converting the following values or equation results into angle notation. Include your code and results in your report. NOTE: Matlab has several functions that can calculate the angle of a complex number, but some of the functions will not provide the correct value when converting rectangular coordinates into angle notation. For each of the following values, think about how the rectangular coordinates would be plotted on the real and imaginary axis to determine if the angle returned by your function makes sense. ii 6+0.1j iv. (2+j)+ (4-4j) v. (1-101)-(7-5) vi. (8+4j)j vii. (3.2+1.8j)*(4.6-5.1j)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
