- Scilab Online Help
- Elementary Functions
- Discrete mathematics
- Floating point
- Integer representation
- Trigonometry
- abs
- amell
- and
- &
- binomial
- bitand
- bitor
- bloc2exp
- bloc2ss
- cat
- cell2mat
- cellstr
- char
- cumprod
- cumsum
- delip
- diag
- diff
- dsearch
- exp
- eye
- flipdim
- gsort
- imag
- imult
- ind2sub
- intersect
- inttrap
- isdef
- isempty
- isequal
- isequalbitwise
- isreal
- isvector
- kron
- lex_sort
- linspace
- log
- log10
- log1p
- log2
- logm
- logspace
- lstsize
- max
- meshgrid
- min
- modulo
- ndgrid
- ndims
- nextpow2
- norm
- ones
- or
- |
- pen2ea
- permute
- pertrans
- prod
- rand
- real
- resize_matrix
- setdiff
- sign
- signm
- size
- solve
- sqrt
- sqrtm
- squarewave
- ssrand
- sub2ind
- sum
- sysconv
- sysdiag
- syslin
- toeplitz
- trfmod
- trianfml
- tril
- trisolve
- triu
- typeof
- union
- unique
- vectorfind
- zeros
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
eye
identity matrix
Calling Sequence
X=eye(m,n) X=eye(A) X=eye()
Arguments
- A,X
matrices or
syslin
lists- m,n
integers
Description
according to its arguments defines an
m
xn
matrix with 1 along the main
diagonal or an identity matrix of the same dimension as
A
.
Caution: eye(10)
is interpreted as
eye(A)
with A=10
i.e.
1
. (It is NOT a ten by ten identity matrix!).
If A
is a linear system represented by a
syslin
list, eye(A)
returns an
eye
matrix of appropriate dimension: (number of outputs
x number of inputs).
eye()
produces a identity matrix with undefined
dimensions. Dimensions will be defined when this identity matrix is added
to a matrix with fixed dimensions.
Examples
<< exp | Elementary Functions | flipdim >> |