Solved

values at bar in Matlab

Posted on 2011-09-03
1
518 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
ID: 36479385
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

829 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