matlab_complex - Using MATLAB to solve Simultaneous...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Using MATLAB to solve Simultaneous Complex-valued Equations: Denard Lynch Page 1 of 4 Nov 15, 2003; Revised: Nov, 2009. Open the MATLAB application (from the START Mathematics and Graphing MATLAB R2008b) on any of the lab computers. Have your simultaneous equations written in the form: a 11 i 1 + a 12 i 2 + a 13 i 3 _ … = b 1 a 21 i 1 + a 22 i 2 + a 23 i 3 _ … = b 2 a 31 i 1 + a 32 i 2 + a 33 i 3 _ … = b 3 . . a n1 i 1 + a n2 i 2 + a n3 i 3 _ … = b n Arrange the coefficients in matrix form AX=B , where: , , and Enter the coefficients into MATLAB as shown in the following example and then solve for X using MATLAB’s left division operator (\): X=A\B Example: After analyzing an AC circuit you are left with the following equations: (22 –j22)i 1 + (-10)i 2 + (0)i 3 = 10 0 0 V (-10)i 1 + (25 +j30)i 2 + (j10)i 3 = 0 (0)i 1 + (j10)i 2 + (75 +j15)i 3 = 25 40 0 V Enter these into MATLAB as follows, leaving a space only between elements in each row (note the semicolon starts a new row): >> format short g, format compact just sets up the umber format so it isn’t too long >> A=[22-12j -10 0; -10 25+30j 10j; 0 10j 75+15j]
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/25/2010 for the course EE 201 taught by Professor Linch during the Spring '10 term at University of Saskatchewan- Management Area.

Page1 / 4

matlab_complex - Using MATLAB to solve Simultaneous...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online