matlab入门
导游
数学基本函数
补充
- linspace(b,l,len) //等间隔向量
- [b,len,l]=linspace(b,l,len)//语法不支持,理解记忆
- size()//方法,获得行列数
- trace()//方法,获得矩阵的迹
- rank()//方法,获得矩阵的秩
- reshape(e,[r,c])//改变形状
- repmat(e,[r,c])//以e为新的单元构造矩阵
- syms //定义符号变量不是函数函数方法
操作一
操作二
- 矩阵转置 e’
- 矩阵翻转 filp
上下 filpud(under down)
左右 filplr(left right)
- 逆时针 rot90
- 矩阵转行列式
det() --determinant
- 逆矩阵
inv() --inverse matrix
简单绘图
- grid //背景添加表格网
- xlabel(str) //底部的文字描述,同理还有ylabel
- text(x,y,str)//表示在坐标(x,y)处增加文字描述str
- comet() //特效,彗星效果
- 基本绘图元素
- 构造指定图像