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.

ar3, bar3hPurpose2bar3, bar3hThree-dimensional bar chartSyntaxbar3(Y)bar3(x,Y)bar3(...,width)bar3(...,'style')bar3(...,LineSpec)h = bar3(...)bar3h(...)h = bar3h(...)Descriptionbar3 and bar3h draw three-dimensional vertical and horizontal bar charts.bar3(Y) draws a three-dimensional bar chart, where each element in Ycorresponds to one bar. When Y is a vector, the x-axis scale ranges from 1 tolength(Y). When Y is a matrix, the x-axis scale ranges from 1 to size(Y,2),which is the number of columns, and the elements in each row are groupedtogether.bar3(x,Y) draws a bar chart of the elements in Y at the locations specified inx, where x is a monotonic vector defining the y-axis intervals for vertical bars.If Y is a matrix, bar3 clusters elements from the same row in Y at locationscorresponding to an element in x. Values of elements in each row are groupedtogether.bar3(...,width) sets the width of the bars and controls the separation of barswithin a group. The default width is 0.8, so if you do not specify x, bars withina group have a slight separation. If width is 1, the bars within a group touchone another.bar3(...,'style') specifies the style of the bars. 'style' is 'detached','grouped', or 'stacked'. 'detached' is the default mode of display.• 'detached' displays the elements of each row in Y as separate blocks behindone another in the x direction.2-45

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

Saved successfully!

Ooh no, something went wrong!