Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me with this matlab problem!! (a) Write a MATLAB function A=myLU(A), with input matrix A and use the same matrix to store your

Please help me with this matlab problem!!

(a) Write a MATLAB function A=myLU(A), with input matrix A and use the same matrix to store your the lower and upper triangular matrices L and U (see the top of page 105 for a way to do this). Test your code with the following matrix A = ? ? 1 ?1 3 1 1 0 3 ?2 1 ? ? . Display your output.

(b) Write a MATLAB function [L, U, P]=myLUPP(A), which adds the pivoting procedure to the myLU function. The output L is the lower triangular matrix, U the upper triangular one, and P the permutation matrix. Test your code with the matrix in problem 3. Output the matrices L, U and P, and verify that LU = P A.

image text in transcribed
4. (a) Write a MATLAB function A=myLU (A) , with input matrix A and use the same matrix to store your the lower and upper triangular matrices L and U (see the t0p of page 105 for a way to do this). Test your code with the following matrix 1 1 3 A: 1 1 0 3 2 1 Display your output. (b) Write a MATLAB function [L, U, P] =myLUPP(A), which adds the pivoting procedure to the myLU function. The output L is the lower triangular matrix, U the upper triangular one, and P the permutation matrix. Test your code with the matrix in problem 3. Output the matrices L, U and P, and verify that LU : PA

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

Probability and Random Processes With Applications to Signal Processing and Communications

Authors: Scott Miller, Donald Childers

2nd edition

123869811, 978-0121726515, 121726517, 978-0130200716, 978-0123869814

More Books

Students also viewed these Mathematics questions