下面是一段matlab程序,画曲线用的。 但不知道最后一句里的”--rs“是什么意思。请教一下大家了!

下面是一段matlab程序,画曲线用的。 但不知道最后一句里的”--rs“是什么意思。请教一下大家了!,第1张

传递给plot的一个曲线绘制参数
matlab help里有解释我使用时一般都默认
色彩字符颜色线型字符线型格式标记符号数据点形式标记符号数据点形式
y 黄- 实线 点< 小于号
m 紫: 点线o 圆s 正方形
c 青- 点划线x 叉号d 菱形
r 红- - 虚线+ 加号h 六角星
g 绿 星号p 五角星
b 蓝v 向下三角形
w 白^ 向上三角形
k 黑> 大于号
>>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 interpolating green circles at the data points

The PLOT command, if no color is specified, makes automatic use of
the colors specified by the axes ColorOrder property By default,
PLOT cycles through the colors in the ColorOrder property For
monochrome systems, PLOT cycles over the axes LineStyleOrder property

Note that RGB colors in the ColorOrder property may differ from
similarly-named colors in the (X,Y,S) triples For example, the
second axes ColorOrder property is medium green with RGB [0 5 0],
while PLOT(X,Y,'g') plots a green line with RGB [0 1 0]

If you do not specify a marker type, PLOT uses no marker
If you do not specify a line style, PLOT uses a solid line

PLOT(AX,) plots into the axes with handle AX

PLOT returns a column vector of handles to lineseries objects, one
handle per plotted line

The X,Y pairs, or X,Y,S triples, can be followed by
parameter/value pairs to specify additional properties
of the lines For example, PLOT(X,Y,'LineWidth',2,'Color',[6 0 0])
will create a plot with a dark red line width of 2 points

Example
x = -pi:pi/10:pi;
y = tan(sin(x)) - sin(tan(x));
plot(x,y,'--rs','LineWidth',2,
'MarkerEdgeColor','k',
'MarkerFaceColor','g',
'MarkerSize',10)

欢迎分享,转载请注明来源:品搜搜测评网

原文地址:https://pinsoso.cn/meirong/3806494.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2024-03-23
下一篇2024-03-23

随机推荐

  • 雅格伊思是哪国的牌子

    是韩国的牌子。护肤品,即保护皮肤的产品。随着社会经济的不断进步和物质生活的丰富,护肤品,不再是过去只有富人才用的起的东西。现如今护肤品已走进了平常百姓家。它对人们的精神、形象提升起到了极大的作用。发展历程中国的化妆品市场是全世界最大的新兴市

    2024-04-15
    64800
  • 妮维雅630淡斑精华真假

    关于妮维雅630淡斑精华的真假问题,我可以告诉你,这取决于你购买的渠道和产品包装。如果你选择在正规渠道购买,比如官网、专柜或者认可的线上零售商,那么你购买到的产品应该是真品。如果你选择在一些不明来源的小店或者个人手中购买,那么就存在假货风险

    2024-04-15
    50100
  • olay水感透白六件套顺序

    Olay水感透白六件套的使用顺序如下:1 玉兰油深层洁肤乳。2 玉兰油莹肌亮肤液。3 玉兰油水感透白透视美白精华露。4 玉兰油水漾动力莹眸走珠精华笔。5 玉兰油水感透白防晒修护凝乳。6 玉兰油轻透倍护隔离防晒液。以上步骤有助于提亮你的肤色,

    2024-04-15
    63000
  • 哪款精华液最好用 29款精华液自用心得

    细数一下我这7年来用过29款精华液,我没有收集空瓶的习惯,所以没法像其他姑娘一下拍出美美的空瓶照片,只能借助官网。但是我以下分享的每个字都是发自肺腑的,下面说一下我自己的情况,看是否有适合你用的精华液。年龄:25 肤色:白皮 肤质:大

    2024-04-15
    37300
  • 妮维雅润肤霜怎么用?妮维雅润肤霜能涂脸吗?

    秋天随着天气越来越干燥,很多人开始注重涂抹面霜或是手霜护肤。那么,妮维雅润肤霜怎么用?妮维雅润肤霜能涂脸吗?妮维雅润肤霜怎么用1与婴儿润肤油配合使用大家在使用妮维雅蓝罐的时候是否感到稍稍不易推开呢有一个方法可以轻松解决这一问题,那就是在妮维

    2024-04-15
    42200
  • 美容院里的做背的基础油和套盒有什么区别

    美容院里的做背的基础油和套盒有什么区别?在美容院里进行背部护理的时候,通常会有两种选择:基础油和套盒。这两种产品有什么区别呢?基础油是一种不含任何添加剂的纯天然植物油,常见的有橄榄油、葡萄籽油、甜杏仁油等。在进行背部护理时,按摩师会用基础油

    2024-04-15
    40300
  • 怎样开一个化妆品店

    1 一般需要办好工商营业执照、税务登记证、组织机构代码证就可以了。2 最好能找到一些化妆品厂商在当地的经销商,直接从经销商处进货,货源与服务有保障。如果你与厂家有关系也是可以的。3 如果只经营化妆品的话,一般店不要太大,15平米以下就行了。

    2024-04-15
    47700

发表评论

登录后才能评论
保存