[Master Index]
[Index for /tools/hpmatlab/toolbox/matlab/plotxy]
bar
(/tools/hpmatlab/toolbox/matlab/plotxy/bar.m)
Function Synopsis
[xo,yo] = bar(x,y,c)
Help text
BAR Bar graph.
BAR(Y) draws a bar graph of the elements of vector Y.
BAR(X,Y) draws a bar graph of the elements of vector Y at
the locations specified in vector X. The X-values must
be in ascending order. If the X-values are not evenly spaced, the
interval chosen is not symmetric about each data point. Instead,
the bars are drawn midway between adjacent X-values. The endpoints
simply adopt the internal intervals for the external ones needed.
If X and Y are matrices the same size, one bar graph per column
is drawn.
[XX,YY] = BAR(X,Y) does not draw a graph, but returns vectors
X and Y such that PLOT(XX,YY) is the bar chart.
See also STAIRS, HIST.
BAR(X,'linetype') or BAR(X,Y,'linetype') uses the plot linetype
specified. See PLOT for details.
Cross-Reference Information
This function calls
- abs /tools/hpmatlab/toolbox/matlab/elfun/abs.m
- axis /tools/hpmatlab/toolbox/matlab/graphics/axis.m
- diff /tools/hpmatlab/toolbox/matlab/datafun/diff.m
- else /tools/hpmatlab/toolbox/matlab/lang/else.m
- elseif /tools/hpmatlab/toolbox/matlab/lang/elseif.m
- end /tools/hpmatlab/toolbox/matlab/lang/end.m
- eps /tools/hpmatlab/toolbox/matlab/elmat/eps.m
- error /tools/hpmatlab/toolbox/matlab/lang/error.m
- gca /tools/hpmatlab/toolbox/matlab/graphics/gca.m
- get /tools/hpmatlab/toolbox/matlab/graphics/get.m
- hold /tools/hpmatlab/toolbox/matlab/graphics/hold.m
- if /tools/hpmatlab/toolbox/matlab/lang/if.m
- isempty /tools/hpmatlab/toolbox/matlab/ops/isempty.m
- ishold /tools/hpmatlab/toolbox/matlab/graphics/ishold.m
- max /tools/hpmatlab/toolbox/matlab/datafun/max.m
- min /tools/hpmatlab/toolbox/matlab/datafun/min.m
- nargin /tools/hpmatlab/toolbox/matlab/elmat/nargin.m
- nargout /tools/hpmatlab/toolbox/matlab/elmat/nargout.m
- newplot /tools/hpmatlab/toolbox/matlab/graphics/newplot.m
- ones /tools/hpmatlab/toolbox/matlab/elmat/ones.m
- plot /tools/hpmatlab/toolbox/matlab/plotxy/plot.m
- set /tools/hpmatlab/toolbox/matlab/graphics/set.m
- size /tools/hpmatlab/toolbox/matlab/general/size.m
- sqrt /tools/hpmatlab/toolbox/matlab/elfun/sqrt.m
- zeros /tools/hpmatlab/toolbox/matlab/elmat/zeros.m
This function is called by
- hist /tools/hpmatlab/toolbox/matlab/plotxy/hist.m
Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON