matlab基础

来源:互联网 发布:linux ip地址映射 编辑:程序博客网 时间:2024/06/17 13:21

matlab常用函数

x=linspace(-1,1);

在-1至1之间 平均分布100个数据


subplot(m,n,p)

创建m行n列 的集成图像,p为当前编辑函数的图像位置(1-m*n,从左向右数)


Specifier LineStyle ‘-‘ Solid line (default) ‘- -‘ Dashed line ‘:’ Dotted line ‘-.’ Dash-dot line
Specifier Marker Type ‘+’ Plus sign ‘o’ Circle ‘*’ Asterisk ‘.’ Point ‘x’ Cross ‘square’ or ‘s’ Square ‘diamond’ or ‘d’ Diamond ‘^’ Upward-pointing triangle ‘v’ Downward-pointing triangle ‘>’ Right-pointing triangle ‘<’ Left-pointing triangle ‘pentagram’ or ‘p’ Five-pointed star (pentagram) ‘hexagram’ or ‘h’ Six-pointed star (hexagram)
Specifier Color r Red g Green b Blue c Cyan m Magenta y Yellow k Black w White
0 1