the use of eye command?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
metin yilmaz
am 5 Nov. 2020
Beantwortet: James Tursa
am 5 Nov. 2020
Would you please explain the meaning of this use of eye command?
>>eye (2,4)
ans=
1 0 0 0
0 1 0 0
Thanks.
0 Kommentare
Akzeptierte Antwort
James Tursa
am 5 Nov. 2020
eye(M,N) creates an MxN matrix with 1's along the main diagonal (from the upper left corner down towards lower right) and 0's everywhere else. The usage would depend on the user's needs.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!