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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

stem3Purpose2stem3Plot three-dimensional discrete sequence dataSyntaxDescriptionstem3(Z)stem3(X,Y,Z)stem3(...,'fill')stem3(...,LineSpec)h = stem3(...)Three-dimensional stem plots display lines extending from the xy-plane. Acircle (the default) or other marker symbol whose z-position represents thedata value terminates each stem.stem3(Z) plots the data sequence Z as stems that extend from the xy-plane.x and y are generated automatically. When Z is a row vector, stem3 plots allelements at equally spaced x values against the same y value. When Z is acolumn vector, stem3 plots all elements at equally spaced y values against thesame x value.stem3(X,Y,Z) plots the data sequence Z at values specified by X and Y. X, Y, andZ must all be vectors or matrices of the same size.stem3(...,'fill') specifies whether to color the interior of the circle at theend of the stem.stem3(...,LineSpec) specifies the line style, marker symbol, and color for thestems. See LineSpec for more information.h = stem3(...) returns handles to line graphics objects.ExamplesCreate a three-dimensional stem plot to visualize a function of two variables.X = linspace(0,1,10);Y = X./2;Z = sin(X) + cos(Y);stem3(X,Y,Z,'fill')view(-25,30)2-458

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

Saved successfully!

Ooh no, something went wrong!