MATLAB: How to reflect the element above the diagonal of a matrix to the lower diagonal diagonalMATLABmatrix How could I reflect all the upper element of a square matrix of size K = 3 to the lower side Like this ? Thank you very much Best Answer b=triu(a)+triu(a,1).'; %the result Related SolutionsMATLAB: Change diagonal place a= magic(3)a = 8 1 6 3 5 7 4 9 2>> b=a;>> for i =2:size(a,1)b(i,1:i)= fliplr(a(i,1:i));endbb = 8 1 6 5 3 7 2 9 4 MATLAB: Is pca() faster than svd() Read the help for SVD, particularly the economy SVD. Related QuestionExtracting matrix diagonal with diag(A)
Best Answer