Science:Math Exam Resources/Courses/MATH152/April 2017/Question A 15/Statement

From UBC Wiki

Write down the matrix that will result from the following lines of MATLAB code:

A=zeros(3,4);
A(3,:) = [1 2 3 4];
for i=1:3 
   A(i,i+1) = 5;
end