Solved

values at bar in Matlab

Posted on 2011-09-03
1
494 Views
Last Modified: 2016-03-02
I created a bar graph in Matlab  and i would like to put the value of each bar at the bar.How to do that?
0
Comment
Question by:Tom3333
1 Comment
 
LVL 15

Accepted Solution

by:
yuk99 earned 50 total points
Comment Utility
I already gave you the code in this question:
http://www.experts-exchange.com/Programming/Languages/MatLab/Q_27279697.html

Here is it again:
x = [1 2 0 3 4];
xname = {'Foo','Bar','','Baz','Othername'};
bar(x)
text(1:numel(x),x,xname,'horizontalalignment','center','verticalalignment','bottom')

Open in new window

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PYTHON: Updating local variable in .TPL file 24 123
Convert Jpg /PNG To GIF 5 102
debug as  junit test 4 64
noX challenge 17 76
Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
This article will show, step by step, how to integrate R code into a R Sweave document
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now