Chinaunix首页 | 论坛 | 博客
  • 博客访问: 221346
  • 博文数量: 25
  • 博客积分: 4085
  • 博客等级: 上校
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-30 02:09
文章分类

全部博文(25)

文章存档

2011年(1)

2009年(2)

2008年(22)

我的朋友

分类: 系统运维

2008-10-20 23:56:02

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) |
给主人留下些什么吧!~~