2018-05-25

matlab 画图
线形

  • Solid line (default)
    -- Dashed line
    : Dotted line
    -. Dash-dot line

颜色
r Red
g Green
b Blue
c Cyan
m Magenta
y Yellow
k Black
w White

数据点的形状

  • 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)

Examples

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Fourier transform总结 [TOC] 总的分类 根据变量的连续与否,F.T.总共有三种。 完全离散$...
    逸少阅读 330评论 0 0
  • Guiding questions: Chapter 11 takes both on Earth and Mar...
    泥巴叔叔阅读 181评论 0 0
  • Typora使用笔记 [TOC] 标题 “#” 一级标题 “##” 二级标题 以此类推直至“######” 表示六...
    逸少阅读 558评论 0 0
  • 文/三王为姓 十里荷风暖, 花塘绿郁深。 清香七寸醉芳心, 何况一池红粉拂衣襟? ――丙申年七月立秋卯时
    泽霈君阅读 284评论 9 8
  • 股东代表诉讼 公司法第152条规定了股东代表诉讼,其中仅列举了公司董事、高管人员损害公司利益,但公司股东损、第三人...
    9e81bf904ee4阅读 401评论 0 0