正在加载图片...
MATLAB Lecture 9 School of Mathematical Sciences Xiamen University http://gdjpkc.xmu.edu.cn >>X=423];y=213 >>X=4234]y=[2132 > plot(x,y) > plot(x y, "Line width, 2, Marker, 0) 如点口 A了们 B33234 638 ◆ Fills polygon fill3(X,Y, Z, C)fills the 3-D polygon defined by vectors X, Y and Z with the color specified by C. The vertices of the polygon are specified by triples of components of x, Y and Z. 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, [rg b, the polygon is filled with the constant specified color If C is a vector the same length as X, Y and Z, its elements are scaled by CAXis and used as indices into the current COlORMAP to specify colors at the vertices; the color within the plygon is obtained by bilinear in the a row vector for"flat"polygon colors, and C is a matrix for"interpolated" polygon colors p If x, Y and Z are matrices the same size, one polygon per column is drawn. In this case, C If any ofX, Y or Z is a matrix, and the others are column vectors with the same number of rows, the column vector arguments are replicated to produce matrices of the required size fill3(X1, Y1, Z1, C1, X2, Y2, Z2, C2,)is another way of specifying multiple filled areas >>X=212;971,670 Yiss Jaunt A >>z=186;796,161 >>c=100,010,001 10 >>fl3(x,y,z,c), > grid on 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.MATLAB Lecture 9  School of Mathematical Sciences Xiamen University  http://gdjpkc.xmu.edu.cn  Lec9­3  >> x=[4 2 3]; y=[2 1 3];  >> x=[4 2 3 4]; y=[2 1 3 2];  >> plot(x,y) >> plot(x,y, 'LineWidth',2, 'Marker','o');  ² Fills polygon  fill3(X,Y,Z,C) fills the 3­D polygon defined by vectors X, Y and Z with the color specified by  C.  The vertices  of the polygon  are specified by triples of components of X,  Y and Z.  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.  If C is a vector the same length as X, Y and Z, its elements are scaled by CAXIS and used as  indices into the current COLORMAP to specify colors  at the vertices; the color within the polygon is obtained by bilinear interpolation in the vertex colors.  If X, Y and Z are matrices the same size, one polygon per column is drawn. In this case, C is a row vector for "flat" polygon colors, and C is a matrix for "interpolated" polygon colors.  If any of X, Y or Z is a matrix, and the others are column vectors with the same number of rows, the column vector arguments are replicated to produce matrices of the required size.  fill3(X1,Y1,Z1,C1,X2,Y2,Z2,C2,...) is another way of specifying multiple filled areas.  >> x=[2 1 2; 9 7 1; 6 7 0];  >> y=[1 7 0; 4 7 9; 0 4 3];  >> z=[1 8 6; 7 9 6; 1 6 1];  >> c=[1 0 0; 0 1 0; 0 0 1];  >> fill3(x, y, z, c);  >> grid on  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
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有