EE23 Fall 2017 Matlaba Due 11/17/2017 Complex Numbers: The following Problem can
ID: 2249666 • Letter: E
Question
EE23 Fall 2017 Matlaba Due 11/17/2017 Complex Numbers: The following Problem can be solved using complex numbers. In the circuit bekow 3 20 AH cos) 40040 mesh analysis ean be used to determine the value of the currents and / After applying Mesh analysis, the following eqaations are obtained 1. Determine Jin + iy and polar form by: (a) Solving the equations by hand b) Using Matlab to solve for the unknow To solve the equations by hand. write the system ofequation in the A1 = 6, tben use Ganss elimination method to solve them. You can use the following steps: * Multiply the first row by the eunjugate of ,-(3 +4j):1y doing this you should grt 25 as the new coefficient of Repeat the previous step on the second equation,-multiply it by its conjugate which is 4 Now the coeflicients a and aare real aabers so you can eliminate a then use back substitution to solve for and To solve the equations using Matlab: Use Cramer's rule to solve for lh and / 2. Use Matlab to find the real and imaginary part of z and magnitude and argument of where 3+3i) (4+3 (1+1)10(4) z = . Write a Matlab program that returns the n roots of a complex number. The function should have a and n as inputs and returns y as the outputExplanation / Answer
1)
CODE:
clc
clear all
A= [ (3+4i) -(4i)
-(4i) -(2+4i)];
B= [ 2 ; 4];
I= AB
output:
I =
-0.2454 + 0.1190i
-0.1561 + 0.8030i
2)
code:
clc
clear all
Z= (( (3+3i)^7*(4+3i)^3)/((1+1i)^10*(4i)^3))
R=real(Z)
I=imag(Z)
M= abs(Z)
ph= angle(Z)
output:
Z =
6.2364e+02 + 1.3754e+03i
R =
623.6367
I =
1.3754e+03
M =
1.5102e+03
ph =
1.1451
3)
clc
clear all
n=1;
prompt = ' enter the values of Z= ';
z= input(prompt);
P= -1 ; P(n+1)=z;
y= roots (P)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.