Question: in matlab any code 2. (New) Create a script for the following problem. An engineer had measured impedances of a collection of electrical components and
in matlab
any code


2. (New) Create a script for the following problem. An engineer had measured impedances of a collection of electrical components and created a text file- impedance.txt - based on the num data. You will find that impedance.txt on Canvas. The first Row of the file is MAGNITUDE of the impedance and the second Row is the PHASE in radian) of the impedance. Column number indicates the number of components erical Here are the needed conditions. (1) will read the impedance.txt and find the Column number (You can use size' function) (2) compute real part and imaginary part of impedance of individual component. (3) Save the result on a variable Impedance Catesian. (4) Save the result on a text file Impedance Cartesian.txt (5) Also have this following message displayed on the screen ("There are ### components in the file impedance.txt. The Conversion of POLAR format of complex number into CARTESIAN format is completed and the result is saved on Impedance Cartesian.txt") (6) Do this with FOR LOOP OR WHILE LOOP (Only a single script is needed!) Conversion Equation from Polar into Cartesian From MAGNITUDE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
