MATLAB Bar Command


Revision as of 16:36, 15 April 2013 by Gabe Spradlin (Talk | contribs) (See Also)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
MATLAB Bar Command
Green carrot left.gif
All MATLAB Articles MATLAB's Figure Command
Green carrot.jpg
In order to prevent spam, users must register before they can edit or create articles.

1 Introduction

The bar command plots a bar graph to the current figure.

MATLAB's Bar Chart Help

2 Basic Usage

The basic syntax of the bar command is the same as the plot command.

 >> bar(x, y)

For use with the hist command

 >> [n, xout] = hist(data);
 >> figure;
 >> bar(xout, n);

3 See Also