Question

MATLAB QUESTION!!!

9) The following system of equations is used in Navier Stokes theorem to determine force fluctuations on a hypersonic jet. So

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

A=[3 1 1 1 3;1 -3 7 1 5;2 2 -3 4 -1;1 1 1 1 1;1 1 -1 -1 -7]; %%Matrix A having coefficients of x,y,z,w,v.
B=[27;17;16;1;-7]; %%RHS vector
tic %%Start time
X=inv(A)*B %%Solution using matrix inversion
toc %%End time
tic %%Start time
X1=A\B %%Solution using Left division
toc %%End time
%%Clearly left division takes lesser time.

5 A=[3 1 1 1 3;1 -3 7 1 5;2 2 -34 -1;1 1 1 1 1;1 1 -1 -1 -7]; %Matrix A having coefficients of x,y,z,w,V. B=[27;17;16;1;-7];

Add a comment
Know the answer?
Add Answer to:
MATLAB QUESTION!!! 9) The following system of equations is used in Navier Stokes theorem to determine...
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
ADVERTISEMENT