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.
Best Answer
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.
If you have downloaded a MATLAB program (such as from the MATLAB File Exchange), unzip the source and put the source in a new directory, and in MATLAB use
Best Answer