How to generalize the size of identity matrix as that of any size of input matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rutika Titre
am 1 Dez. 2015
Beantwortet: Walter Roberson
am 1 Dez. 2015
My input matrix M of size 5X5, I want an identity matrix of its size so I gave I=ones(5).I have to change every time the size of identity matrix to that of the size of input matrix.
I want generalized way of identity matrix any help regarding this query please.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Operators and Elementary Operations 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!