Question: Start your M - file by defining the variable A to hold the matrix A = [ 1 5 1 - 2 1 0 3

Start your M-file by defining the variable A to hold the matrix
A=[151-21032-5]
Variables: A
Add the command
[ LLA ,UA]=1u(A);
Variables: LA, UA
Execute the M-file and examine the contents of the matrices LA and UA. Observe that UA is upper triangular.
Q1: Is LA lower triangular? Why?
Hint: Type doc lu and look at the difference between the commands
[L,U,P]=lu(A)
Start your M - file by defining the variable A to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!