Question

Problem 1: Use MATLAB to solve the following system: 5 AI 8 F 01 0 0r NaMgAl206 Then use MATLAB to solve the following system: 8 Al 0 0 2 2.3 NaMgA|206 Comment on your results: why did the solution change or not?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

% I am assuming We can use the inbuilt function in matlab

%The solution did not change because the final equations are the same and just reaaranged

%Script begins here:-

A1=[2,2,0,3;0,0,2,1;0,1,0,0;1,0,1,0];
B1=[29;5;8;3];
A2=[1,0,1,0;0,1,0,0;0,0,2,1;2,2,0,3];
B2=[3;8;5;29];
fprintf("The Solution from first system=\n");
disp(linsolve(A1,B1));
fprintf("The Solution from second system=\n");
disp(linsolve(A2,B2));

I- AI= [2 , 2, 0, 3:0,0,2,1:0,1,0,0:1,0,1,0); 2- B1= [2 9 ; 5 ; 8:31: 3A2 [1,0,1,0:0,1,0,0:0,0,2,1:2,2,0,3]: 4B2-13:8:5:291: fprintf(The Solution from first system=\n); disp (linsolve (Al, B1)) 7-fprintf (The Solution from second system-n) disp (1insolve (A2 , B2))

Add a comment
Know the answer?
Add Answer to:
Problem 1: Use MATLAB to solve the following system: 5 AI 8 F 01 0 0r...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT