线型符号 matlab,Matlab---画图线型、符号及颜色
Matlab 画图线形、颜色、数据点形状的选择1,线形- Solid line (default)-- Dashed line: Dotted line-. Dash-dot line2,颜色r Redg Greenb Bluec Cyanm Magentay Yellowk Blackw White3,数据点的形状+ Plus signo Circle* Asterisk. Pointx Cro
Matlab 画图
线形、颜色、数据点形状的选择
1,线形
- Solid line (default)
-- Dashed line
: Dotted line
-. Dash-dot line
2,颜色
r Red
g Green
b Blue
c Cyan
m Magenta
y Yellow
k Black
w White
3,数据点的形状
+ 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
'pentagram' or p Five-pointed star (pentagram)
'hexagram' or h Six-pointed star (hexagram)
4,例子
Plot the sine function over three different ranges using different line styles, colors, and markers.
t = 0:pi/20:2pi;
plot(t,sin(t),'-.r')
hold on
plot(t,sin(t-pi/2),'--mo')
plot(t,sin(t-pi),':bs')
hold off
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)