Question: Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace


Exercise 1: Write MATLAB code to create a 5x5 matrix A with 2's on the diagonal, and -1 on the super- and sub-diagonal. Then replace the (1,1) element of A with a 1. (Make your commands capable of handling an arbitary sized NxN matrix by first defining N=5, then using the variable N as the size in each of the commands.) % Put your code here Exercise 3: Find the inverse of the matrix A. Describe the pattern that you see in the entries % Put your code here Put your observations here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
