MATLAB——PLOT绘图
2013-01-17 10:56
351 查看
格式化绘图:
1.color:
2.type of coordinate point
3.type of line
4.instance
by using the instruction "polt(X, Y, S)", we can plot points and lines with the types listed above.
in "polt(X, Y, S)",X and Y are vectors,
S is a string formed of elements listed above.
For example, when S = 'o--', it means that the symble for points is circle, and the line format is dashed.
conduct the instructions:
>> x = [1:1:10];
>> y = [2:1:11];
>> plot(x, y, 'o--')
we can get figure below:
1.color:
b | g | r | c | m | y | k | w |
blue | green | red | cyan | magenta | yellow | black | white |
. | o | x | + | * | s | d | v | ^ | < | > | p | h |
point | circle | x-mark | plus | star | square | diamond | triangle (down) | triangle (up) | triangle (left) | riangle (right) | pentagram(五角星形) | hexagram(六角星形) |
- | : | -. | -- | (none) |
solid | dotted | dashdot | dashed(虚线) | no line |
by using the instruction "polt(X, Y, S)", we can plot points and lines with the types listed above.
in "polt(X, Y, S)",X and Y are vectors,
S is a string formed of elements listed above.
For example, when S = 'o--', it means that the symble for points is circle, and the line format is dashed.
conduct the instructions:
>> x = [1:1:10];
>> y = [2:1:11];
>> plot(x, y, 'o--')
we can get figure below:
相关文章推荐
- Matlab plot绘图
- MATLAB——PLOT绘图
- [初学笔记] matlab的 二维绘图 plot 和系列功能
- MATLAB plot绘图参考
- MATLAB plot绘图参考
- Matlab plot绘图颜色详解
- matlab中多组变量绘图plot的用法
- 【matlab】 绘图 plot 颜色 线形 二维 三维
- matlab plot绘图
- MATLAB——PLOT绘图
- Matlab计算结果的可视化-plot绘图
- matlab 2D plot 绘图函数
- Matlab中 plot 绘图坐标轴设置
- matlab绘图plot循环中不同颜色
- [置顶] Matlab绘图去白边技巧(plot 、subplot)
- matlab plot 绘图
- Matlab风格的二维绘图函数Plot(OpenCV)
- matlab之plot函数绘图方法
- 与matlab plot 绘图 相关的text grid xylabel title [李园7舍_404]
- MATLAB plot 绘图的一些经验,记下来,facilitate future work