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.
the use of eye command?
8 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!