Zoya
Followers: 0 Following: 0
Feeds
已回答
Creating a mxn matrix that is all zeros except for the middle row and middle column which are 1s
% create a 6x6 matrix of zeros matrix = zeros(6); % set the middle two rows and columns to 1's matrix(3:4, :) = 1; matrix(...
Creating a mxn matrix that is all zeros except for the middle row and middle column which are 1s
% create a 6x6 matrix of zeros matrix = zeros(6); % set the middle two rows and columns to 1's matrix(3:4, :) = 1; matrix(...
1 year 前 | 0