Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: labeling bar graphs ?
Date: Thu, 2 Jul 2009 22:05:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 5
Message-ID: <h2jauf$plk$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1246572303 26292 172.30.248.37 (2 Jul 2009 22:05:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 2 Jul 2009 22:05:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1646679
Xref: news.mathworks.com comp.soft-sys.matlab:552570


If I have an array of values called A,
and I apply the command bar(A), I get a bunch of rectangles showing me the contents of A.  

Say I had another array B, who's elements were strings which I intend to use to label each of the the rectangles corresponding to the elements of A.  How can I get these strings to show up as labels for the rectangles in the bar graph, from the command line ?? 
it should only be one command .. I shouldn't have to add them manually.