12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

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.

areaPurpose2areaArea fill of a two-dimensional plotSyntaxDescriptionarea(Y)area(X,Y)area(...,ymin)area(...,'PropertyName',PropertyValue,...)h = area(...)An area plot displays elements in Y as one or more curves and fills the areabeneath each curve. When Y is a matrix, the curves are stacked showing therelative contribution of each row element to the total height of the curve at eachx interval.area(Y) plots the vector Y or the sum of each column in matrix Y. The x-axisautomatically scales depending on length(Y) when Y is a vector and onsize(Y,1)when Y is a matrix.area(X,Y) plots Y at the corresponding values of X. If X is a vector, length(X)must equal length(Y) and X must be monotonic. If X is a matrix, size(X) mustequal size(Y) and each column in X must be monotonic. To make a vector ormatrix monotonic, use sort.area(...,ymin) specifies the lower limit in the y direction for the area fill. Thedefault ymin is 0.area(...,'PropertyName',PropertyValue,...) specifies property nameand property value pairs for the patch graphics object created by area.h = area(...) returns handles of patch graphics objects. area creates onepatch object per column in Y.Remarksarea creates one curve from all elements in a vector or one curve per column ina matrix. The colors of the curves are selected from equally spaced intervalsthroughout the entire range of the colormap.-2

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

Saved successfully!

Ooh no, something went wrong!