|
Contents | Previous | Next | Subchapters |
| Syntax |
eye(d) |
eye(m, n) | |
| See Also | identity , ones , zeros |
eye are
integer, real, double-precision or complex.
If an argument is complex, only its real part is used.
eye(d)
If d is a scalar,
eye returns a d x d matrix.
If d is a two element row vector,
eye returns a d(1) x d(2) matrix.
eye(m, n)
eye returns a m x n matrix,
where m and n are scalars.
eye(2, 3)
O-Matrix will reply
{
[ 1 , 0 , 0 ]
[ 0 , 1 , 0 ]
}