28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If you specify color using C, fill3 scales the elements of C by the axes property<br />

CLim, which specifies the color axis scaling parameters, before indexing the<br />

current colormap.<br />

If C is a row vector, fill3 generates flat-shaded polygons and sets the<br />

FaceColor property of the patch objects to 'flat'. Each element becomes the<br />

CData property value for the respective patch object.<br />

If C is a column vector or a matrix, fill3 generates polygons with interpolated<br />

colors and sets the patch object FaceColor property to 'interp'. fill3 uses a<br />

linear interpolation of the vertex colormap indices when generating polygons<br />

with interpolated colors. The elements in one column become the CData<br />

property value for the respective patch object. If C is a column vector, fill3<br />

replicates the column vector to produce the required sized matrix.<br />

Examples Create four triangles with interpolated colors.<br />

X = [0 1 1 2;1 1 2 2;0 0 1 1];<br />

Y = [1 1 1 1;1 0 1 0;0 0 0 0];<br />

Z = [1 1 1 1;1 0 1 0;0 0 0 0];<br />

C = [0.5000 1.0000 1.0000 0.5000;<br />

1.0000 0.5000 0.5000 0.1667;<br />

0.3330 0.3330 0.5000 0.5000];<br />

fill3(X,Y,Z,C)<br />

fill3<br />

2-823

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!