Question: MATLAB has two inbuilt functions that can be used to find the magnitude and angle of phasors given in Cartesian (complex number) form, these functions

 MATLAB has two inbuilt functions that can be used to find

MATLAB has two inbuilt functions that can be used to find the magnitude and angle of phasors given in Cartesian (complex number) form, these functions are abs () (finds magnitude) and angle () (finds angle). For this task you will be required to write your own user-defined functions in MATLAB that will perform the same operation as abs () and angle (). You may need to review user-defined functions by looking through your notes from EEET2248 - Engineering Methods, or look up 'Create Functions in Files' in the MATLAB help. Use your functions to find the magnitudes and angles of the following complex numbers: Confirm your user-defined functions are working as they should by checking your outputs against that obtain using MATLAB's abs and angle () functions. Make sure your angle function takes into account the change in quadrants around the polar circle; you may need to use if-elseif-else statements to treat each quadrant differently and output the appropriate angle format for each quadrant

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!