create a function file for a which is an array of m x n ones and the top left and bottom left quarters of the matrix are all zeros in matlab
main.m
functiononesMatrix = createOnesMatrix(m, n) onesMatrix = ones(m, n); % create matrix of all ones onesMatrix(1:m/2, 1:n/2) = 0; % top left quarter set to zero onesMatrix(m/2+1:end, 1:n/2) = 0; % bottom left quarter set to zeroend