Question: so I need help with a Matlab program that creates 3 matrixes that calls from another matrix. m is the matrix it calls on. I
so I need help with a Matlab program that creates 3 matrixes that calls from another matrix.

m is the matrix it calls on. I need to creat 3 matrixes called sm1, sm2, and sm3, that are supposed to be 5x5 that look like this respectively

here are the instructions for those matrixes

and here is my code, it doesn't work could you please help fix them and explain the meaning behind them when you do

m= on AWN- 1 2 3 2 3 4 3 4 5 4 5 1 5 1 1 2 4 5 1 2 3 5 1 2 3 4 0.25 0.50 0.75 1.00 1.25 0.50 0.75 1.00 1.25 0.25 sm1 = 0.75 1.00 1.25 0.25 0.50 1.00 1.25 0.25 0.50 0.75 1.25 0.25 0.50 0.75 1.00 0.50 0.75 0.75 1.00 1.25 0.75 1.00 1.00 1.25 0.25 sm2 = 1.00 1.25 1.25 0.25 0.50 1.25 0.25 0.25 0.50 0.75 0.25 0.50 0.50 0.75 1.00 13415 24521 sm3 = 35132 41243 52354 3- Create a matrix named smt which contains the first 2 rows and last 3 columns of the matrix m divided by 4 4- Create a matrx named sm2 Which contains all the elements in column 2 column 3, and the last 3 rows of the matrix m divided by 4. 5- Create a matrix named sm3 which contains all the elements in row 1. row 3, row 4, CORN 1 and column 5 of the matrix m 15 - sml=[m (1:2,:);m (:, end-2:end) '1/4 sm2=[m(:, end-2:end)';m (2:3,:)]/4 sm3=[[[m(1, :);m (3,:);m (4,:)1];m (2,:);m (5,:)]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
