Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN MATLAB Write a function forward.m to solve n n lower triangular systems and a function backward.m to solve n n upper triangular systems. Then

IN MATLAB

Write a function forward.m to solve n n lower triangular systems and a function backward.m to solve n n upper triangular systems. Then write a function mySolve.m to solve n n systems (under the assumption that elimination can be performed without row exchanges). Use MYLU.m from last weeks assignment. Test your code on Ax = b with A = [1 5 4 9 5; 3 0 4 1 0; 8 3 9 3 2; 8 8 6 9 5; 4 7 4 0 3], b = [44; 3; 42; 24; 15] . Check to see if your answer is correct. In your test.m, compare your mySolve solution with the internal MatLab solver linsolve(A,b).

I need help creating forward.m, backward.m, and mysolve.m, thanks!

MYLU is just another lucky decomposition we did last week. I'm pretty sure we're just using it to check if the forward and backward substitutions are correct

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2. What are the different types of networks?

Answered: 1 week ago