MATLAB: Transfer a diagonal matrix

transfer diagonal matrix

Dear colleagues
How to tranfer matrix A to matrix B in matlab
Thank you
Kind regards

Best Answer

  • Please, don't post screenshot for something as simple as a matrix. Use text, so we can copy/paste it into matlab.
    A = diag(1:3); %example data
    B = rot90(A, 2)