Problem:
Question- Practice for loops by iterating through matrices, complete the following sections:
Part 1- Write the MATLAB code to create a 5x5 matrix of zeroes. Store it in a variable named M.
Part 2- Write the MATLAB code to change the diagonals of M from 0's to 1's (Hint: Draw the matrix out if you need to visually see this).
Please show code with comments so I can follow what you are doing.