回覆列表
  • 1 # yfxvhgf

    使用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.祝你學習愉快!

  • 中秋節和大豐收的關聯?
  • 手上長倒刺怎麼辦?為什麼會長倒刺呢?