Transfer a diagonal matrix
2 views (last 30 days)
Show older comments
Dear colleaguesHow to tranfer matrix A to matrix B in matlab
Thank you
Kind regards
Accepted Answer
Guillaume
on 3 Jul 2019
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)
More Answers (0)
See Also
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!