Home > freetb4matlab > graceplot > alternatives > bar.m

bar

PURPOSE ^

% Given two vectors of x-y data, @code{bar} produces a bar graph.

SYNOPSIS ^

function [xb, yb] = bar (x, y)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} bar (@var{x}, @var{y})
% Given two vectors of x-y data, @code{bar} produces a bar graph.
%
% If only one argument is given, it is taken as a vector of y-values
% and the x coordinates are taken to be the indices of the elements.
%
% If two output arguments are specified, the data are generated but
% not plotted.  For example,
%
% @example
% bar (x, y);
% @end example
%
% @noindent
% and
%
% @example
% [xb, yb] = bar (x, y);
% plot (xb, yb);
% @end example
%
% @noindent
% are equivalent.
% @end deftypefn
% @seealso{plot, semilogx, semilogy, loglog, polar, 
% stairs, xlabel, ylabel, and title}

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003