I now have this program which is more developed, but still does not work. Any ideas on how to progress?
function A = hw21(m,n)
%
NRows = m;
NCols = n;
A  = zeros(NRows, NCols)
number = 0;
for col = 1:NCols
    number = number + 1;
    even = fix(col/2);
        if even == col/2
            for row = NRows:1:1
                A(row,col) = A(row,col) + number;
            end
        else   
            for row = 1:NRows
                A(row,col) = A(row,col) + number;
            end
        end
end


