fill

Creates 2D filled in polygons of range x and y and color c.

Syntax

fill(x,y,c)

Inputs

x,y
Ranges.
Type: double | integer
Dimension: scalar | vector | matrix
c
Color.
Type: char
Dimension: scalar

Example

clf;
t1 = (1/16:1/8:1) * 2*pi;
t2 = ((1/16:1/8:1) + 1/32) * 2*pi;
x1 = tan (t1) - 0.8;
y1 = sin (t1);
x2 = tan (t2) + 0.8;
y2 = cos (t2);
h = fill (x1,y1,'r', x2,y2,'g')