I have to make transpose function in for loop for matrix. I am trying to get it to work but it needs some imporvements.
function cd=MyTranspose(A)[row col] = size(A);for m=1:length(row) for n=1:length(col) cd(n,m)=A(m,n); endend
homework
function cd=MyTranspose(A)[row col] = size(A);for m=1:length(row) for n=1:length(col) cd(n,m)=A(m,n); endend
Best Answer