2025年stackedplot 函数_【matlab 基础篇 03】一文带你全面了解 plot 绘图函数的使用(超详细+图文并茂)...

stackedplot 函数_【matlab 基础篇 03】一文带你全面了解 plot 绘图函数的使用(超详细+图文并茂)...快速入门 matlab 系统地整理一遍 如何你和我一样是一个新手 那么此文很适合你 1 前言 如果你是和我一样的小白 强烈推荐看看这里 需要合理地利用官方的文档 通常我觉得官方文档是最好的 没有之一 在命令终端输入 help plot 可以看到详细的帮助文档 具体如下 gt gt help plot plot Linear plot plot X

大家好,我是讯享网,很高兴认识大家。

快速入门matlab,系统地整理一遍,如何你和我一样是一个新手,那么此文很适合你;

1 前言

如果你是和我一样的小白,强烈推荐看看这里,需要合理地利用官方的文档,通常我觉得官方文档是最好的,没有之一,在命令终端输入help plot,可以看到详细的帮助文档;具体如下;

>> help plot

plot Linear plot.

plot(X,Y) plots vector Y versus vector X. If X or Y is a matrix,

then the vector is plotted versus the rows or columns of the matrix,

whichever line up. If X is a scalar and Y is a vector, disconnected

line objects are created and plotted as discrete points vertically at

X.

plot(Y) plots the columns of Y versus their index.

If Y is complex, plot(Y) is equivalent to plot(real(Y),imag(Y)).

In all other uses of plot, the imaginary part is ignored.

Various line types, plot symbols and colors may be obtained with

plot(X,Y,S) where S is a character string made from one element

from any or all the following 3 columns:

b blue . point - solid

g green o circle : dotted

r red x x-mark -. dashdot


讯享网

c cyan + plus -- dashed

m magenta * star (none) no line

y yellow s square

k black d diamond

w white v triangle (down)

^ triangle (up)

< triangle (left)

> triangle (right)

p pentagram

h hexagram

For example, plot(X,Y,'c+:') plots a cyan dotted line with a plus

at each data point; plot(X,Y,'bd') plots blue diamond at each data

point but does not draw any line.

plot(X1,Y1,S1,X2,Y2,S2,X3,Y3,S3,...) combines the plots defined by

the (X,Y,S) triples, where the X's and Y's are vectors or matrices

and the S's are strings.

For example, plot(X,Y,'y-',X,Y,'go') plots the data twice, with a

solid yellow line interpolatin

小讯
上一篇 2025-02-24 23:58
下一篇 2025-02-23 17:08

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/110770.html