eye (X)
eye (N, M)
Return an identity matrix. If invoked with a single scalar
argument, `eye' returns a square matrix with the dimension
specified. If you supply two scalar arguments, `eye' takes them
to be the number of rows and columns.
eye (1,2)
=> [1,0]
randn(X)
Generate a X-dimension square matrix with normally distributed random elements.
find(X, N)
Return a vector of indices of nonzero elements of a matrix
find (eye (2))
=> [ 1; 4 ]
addpath
addpath DIR1
Add DIR1, ... to the current function search path
阅读(748) | 评论(0) | 转发(0) |