matlab plot函数蓝色,matlab 填充某一段plot图像背景颜色,而不是全部都是蓝色

  • Post author:
  • Post category:其他


满意答案

00e27ab806e4881f8254fe7ae8741834.png

lm133

2018.05.05

00e27ab806e4881f8254fe7ae8741834.png

采纳率:46%    等级:12

已帮助:16495人

使用fill函数,具体的方法是:

fill(x,y,c)。

其中区域是使用x和y来指定,c来指定颜色。

例如fill([0 1 1 0],[0 0 1 1],’r’)是给一个矩形区域填充红色。

FILL(X,Y,C) fills the 2-D polygon defined by vectors X and Y with the color specified by C. The vertices of the polygon are specified by pairs of components of X and Y. If necessary,

the polygon is closed by connecting the last vertex to the first.

If C is a single character string chosen from the list ‘r’,’g’,’b’,

‘c’,’m’,’y’,’w’,’k’, or an RGB row vector triple, [r g b], the polygon is filled with the constant specified color.追问: 多谢老哥

00分享举报