正因为此,才使得启用隐藏marker成为可能。plot函数所属的line句柄有一个名叫MarkerHandle的隐藏属性,该属性具有极其强大丰富的功能,这里就不展开了,只用尝试与marker相关的属性设置。 在命令窗口中执行set(hLine, 'Marker'),hLine为plot对应的句柄,可以获得如下14种结果,前13种为plot帮助文档中给出的可用marker: ...
plot(x,y,'--gs','LineWidth',2,'MarkerSize',10,'MarkerEdgeColor','b','MarkerFaceColor',[0.5,0.5,0.5]) 1 这里'--gs'表示用方框画点,然后用绿色虚线连结;'LineWidth',2表示绿色虚线宽度为2;'MarkerSize',10表示方框大小为10;'MarkerEdgeColor','b'表示方框边缘颜色为蓝色;'MarkerFaceColor',[0.5,0.5,...
< triangle (left) > triangle (right) p pentagram h hexagram 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) xlabel('x'); ylabel('y'); ·用Matlab画...
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 pe...
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. ...
<triangle (left) >triangle (right) ppentagram hhexagram 在使用Matlab时,经常需要将得到的数值表达成二维或三维图像。 plot(vector1,vector2)可以用来画两个矢量的二维图,例如 x=1:0.1:2*pi; plot(x,sin(x))可以画正弦函数在0-2pi的上的图像。
< triangle(left) > triangle(right) p pentagram h hexagram 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) xlabel('x'); ylabel('y');·用Matlab画图时,有时候需...
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) ...
1、matlab画图函数plot使用方法plot函数可以接一些参数,来改变所画图像的属性(颜色,图像元素等)。下面是一些属性的说明 b blue(蓝色) . point(点) - solid(实线)g green(绿色) 2、 o circle(圆圈) : dotted(点线)r red(红色) x x-mark(叉号) -. dashdot (点画线)c cyan(墨绿色) ...
(菱形) v triangle (down) ^ triangle (up) < triangle (left) > triangle (right) p pentagram h hexagram Example x = -pi: pi/10: pi; y = tan(sin(x) ) - sin(tan(x) ) ; plot(x, y, ' --rs' , ' LineWidth' , 2, . . . ' MarkerEdgeColor' , ' k' , . . . ' Marker...