Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help me, i inputted this but I keep getting it wrong. its from matlab. ca

ID: 2086697 • Letter: P

Question

please help me, i inputted this but I keep getting it wrong. its from matlab. can you please wite how I i should type it please and thank you.

Calculating impedance Impedance is a useful concept in many engineering disciplines, especially for analyzing electrical circuits when the applied voltages or currents are sinusoids. Impedance is a complex number that represents the ability of a circuit element or combination of elements to oppose sinusoidal electric current. Impedance has the same units as resistance, or ohms(). The impedance of various circuit elements can be calculated as follows: Inductor's impedance:-.?, where is the inductance. is the imaginary unit, ? ?s the sinusoid's frequency, and L . where is the imaginary unit, is the sinusoid's frequency, and c is the capacitance . Resistor's impedance R , where R is the resistance Two impedances, and can be combined in many difterent ways. The simplilest combintations are in series or in paralel. . Two impedances in s+ Two impedances in parallel: The U.S. electrical grid operates at a frequency of 60 Hz, or377 rad/s. Complete the function such that: 1. Assign motorimpedance with the impedance given an electrical motor connected to U.S electrical grid 2. Assign 3. Assign with the impedance given a capacitor connected to the U.S. electrical grid with the impedance of the parallel combination of the above motor and the capacitor. Your Function Save Reset MATLAB Documentation 1 function combinedImpedance CalculateCombinedImpedance motorResistance, motorIn 21% CalculateCombined Impedance: Calculate impedance of motor and capacitor in 3% parallel and connected to U.S. electrical grid Your Function Save C Reset MATLAB Documentation 1 function combinedImpedanceCalculateCombinedImpedancel motorResistance, motorIn 2% CalculatecombinedImpedance: Calculate împedance of motor and capacitor in 3?parallel and connected to U.S. electrical grid Inputs: motorResistance-Electric motor resistance motorInductance -Electric motor inductance 6/% capacitorCapacitance Capacitance in parallel with motor % 0utputs: combined Impedance-Impedance of motor in parallel with 91 % capacitor 11 .2 gridFrequency- 377; ? u.s. electrical grid sinusoid frequency (rad/s) .31 % Assign motorimpedance with inpedance given a motor connected to U.S electr % with resistance and inductance connected in series % Assign capacitor!mpedance with the impedance a capacitor connected to % the U.S. electrical grid .81 :11 2 3 capacitorImpedance :: 0; % FIXE Assign combined!mpedance with the impedance of the above motor and capacti connected in parallel combined!mpedance 50; % FIXHE 6 :7 8 end Code to call your function Reset 1 CalculateCombinedImpedance(1.2, 10e-3, le-3) Code to call your function Reset 1 CalculateCombinedImpedance(1.2, 10e-3, 1e-3) Run Function

Explanation / Answer

There is nothing wrong in the code or the resullts it is giving.

However, in order for a function to work without errors, make sure that you copy the code and save it in a file with the same name as the function. In this case, it should be 'CalculateCombinedImpedence.m'. Moreover, it should be saved in the 'Current Folder' of Matab.

This is to solve a general error that is encountered when working with functions. If this doesn't solve the error, paste the error that is shown in the matlab command window here. The information given in the error details by matlab would help in resolving the issue.