the use of eye command?

8 ビュー (過去 30 日間)
metin yilmaz
metin yilmaz 2020 年 11 月 5 日
回答済み: James Tursa 2020 年 11 月 5 日
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.

採用された回答

James Tursa
James Tursa 2020 年 11 月 5 日
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 件)

カテゴリ

Help Center および File ExchangeDesign of Experiments (DOE) についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by