Access Diagonal Matrix Element
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ana Rizkasari
am 19 Nov. 2016
Beantwortet: KSSV
am 19 Nov. 2016
Hello,
I have matrix 15x60 dimension. How can I generate diagonal data?
If I use "diag" function, I only got matrix 15x1.
Thank you,
Ana
0 Kommentare
Akzeptierte Antwort
KSSV
am 19 Nov. 2016
As it is a rectangular matrix you will get 15 diagonal(i=j) elements. If you have a square matrix of size nxn, you will get n diagonal elements.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!