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.

ar, barhExamplesPlot a bell shaped curve:x = –2.9:0.2:2.9;bar(x,exp(–x.*x))colormap hsv10.90.80.70.60.50.40.30.20.10−3 −2 −1 0 1 2 3Create four subplots showing the effects of various bar arguments:Y = round(rand(5,3)*10);subplot(2,2,1)bar(Y,'group')title 'Group'subplot(2,2,2)bar(Y,'stack')title 'Stack'subplot(2,2,3)barh(Y,'stack')title 'Stack'2-43

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

Saved successfully!

Ooh no, something went wrong!