Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

DESCRIPTION: In this part of the Project, you will create the requested matrices

ID: 2257381 • Letter: D

Question

DESCRIPTION: In this part of the Project, you will create the requested matrices by using MATLAB commands. The set of command has to be written and run to get the required matrices as outputs. Do not write functions in the files to produce the following matrices. But you are welcome to use MATLAB built-in functions. **Create and output the following matrices in MATLAB. Try to use the least possible number of commands: (1) (1 point) Jordan Block is a square nxn matrix with a scalar r on the main diagonal and l's on the diagonal right above it. All other entries are zero. Create and output a 6-by-6 Jordan block, matrix J, with r-3. (Hint: you might use matrices and functions such as diag, ones eye)

Explanation / Answer

a=zeros(6,6)
for i=1:5
a(i,i) = 3
a(i+1,i+1)=3
a(i,i+1)=1
end

Just execute this,it is working.