The function triu makes the upper triangular matrix in the shape of L . How shall I reverse it like to make it run in opposite diirection.
The below function make triu in the top to bottom,i wanna to make it bottom to top and thus reversing it ?
A = ones(6);idx = ( A(:,3:end) );A(:,3:end) = triu(idx,-1)
Best Answer