Question

Using MATLAB please.

Recall the formula for forward substitution to solve the lower triangular system 011 0 021 (122 ... 0 bi b2 0 ann be : anl an

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

Activities MATLAB R2019b-academic use Jul 30 00:53 11 636.65 KB/S MATLAB R2019b - academic use HOME PLOTS APPS EDITOR PUBLISH

function x = forword_substitution()
A=input('enter element of matrix A :');
b=input('enter element of b:');
[row , ~]=size(A);
for i=1:row
        sum=0;
        for j=1:i-1
            sum=sum+A(i,j)*x(j);
        end
        x(i)=(b(i)-sum)/A(i,i);
end
fprintf("solution is:");
end
Add a comment
Know the answer?
Add Answer to:
Using MATLAB please. Recall the formula for forward substitution to solve the lower triangular system 011...
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