Question: PROBLEM 1 (25 points) Write a short Matlab program to perform the following matrix operations and display the results in order, naming the variables as
PROBLEM 1 (25 points) Write a short Matlab program to perform the following matrix operations and display the results in order, naming the variables as indicated in the prompt (as in the variable created in 1-3 should be named "a" and continually modified, the variable for 5 should be named "B", etc.) If no name is specified you can use your own or just write it to "ans": 1. Construct the matrix a: [ 3 579] 2. Calculate the minimum of a and make it the fifth column of a 3. Calculate the max of a and make it the sixth column of a 4. Calculate A: a*a.' 5. Calculate B: a.'a 6. Create a matrix C which replaces all numbers in B which are not 27 with 0 7. Calculate the upper triangular matrix of B 8. Calculate the lower triangular matrix of B 9. Combine the matrices in 7 and 8 to recreate B (hint: this requires more than one command
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
