Assignment #6 �Solve 3 Equations 3 Unknowns� �Posted 6/17, due 6/26 11:59 pm�Late: 6/27 12:01 am – 6/28 11:59 pm�Game over: after 6/28 11:59 pm: 0 point
Solve 3 Equations 3 Unkowns�import script from text file
Open this text file
Solve 3 Equations 3 Unkowns�Solve 3 Equations 3 Unknowns (text file)
clc % clear command window
display('9/21/2020 Coach Section # 12567')
display('Solve 3 EQ 3 UK using Matrix Left Division')
% Example: Three variable x1, x2, x3
% EQ1: 3*x1 + 2*x2 + 5*x3 =22
% EQ2: 4*x1 +5*x2 -2*x3 = 8
% EQ3: x1 + x2 + x3 = 6
% General form:
display('AX = B')
% where:
A=[3 2 5
4 5 -2
1 1 1]
B= [22
8
6]
display('X = [x1; x2; x3]')
% Solution using Matrix Left Division:
X= A\B % see the "funny looking backward slash":"\"
% if you use "/", it won't work, I will laugh at you.
Your name & section#
Solve 3 Equations 3 Unkowns�(Screen shot / Script Window)
Your name & section#
Your name & section#
Your name & section#
Solve 3 Equations 3 Unkowns�(Screen Shot / Solution in Command Window)
Solve 3 Equations 3 Unkowns�(3 x 2 points) 3 test cases, provide 1 solution Screen shot per case