Download presentation
Presentation is loading. Please wait.
Published byChristal Jefferson Modified over 6 years ago
1
Solving Simultaneous Equations using Matlab
By Prof. Johnson Wentworth Institute of Technology Department of Electrical Engineering and Technology November 6th 2014
2
Start Matlab (after installing it)
Click on the application first Starting up indicator
3
Opening screen for Matlab
4
Search for info on simultaneous equations
5
Click on…
6
Begin reading
7
Highlights…
8
Example:
9
How do we get the values into matrix A and b?
10
How do we get values into the ‘b’ vector
This answer was in the previous slide (1st line) Type the letter b into Matlab at the prompt >> Type = Enter the square bracket [ Then enter the values separated by a space…and followed by a ] b = [1, 4, 75] But this is only 1 row. The matrix may have 3 rows so you need to TRANSPOSE the vector Type: b = b’ This will turn the row vector into a column vector
11
Complete solution Pull the coefficients out of the loop equations
Enter them into the A matrix Type A = [ Then start entering the values separated by a space. At the end of a row, signify this using a semicolon ‘;’ After the last value is entered close the matrix with ] Now type in x = b\A and the answer will be a column vector with the solutions.
12
Example* using something familiar…
← Circuit side Math side → *Example from
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.