It should be possible by vectorizing of the original matrix and subsequent reshaping. >> A = [9 4 7; 1 5 2; 3 6 8 ]. >> reshape(sort(A(:)),size(A))'.
確定! 回上一頁