For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > Re: Bar plot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Bar plot
Bibhrajit

2007-06-29, 7:14 pm

Yes that's what I wanted to do. Thank you very much.
Bibhrajit

Jos wrote:
>
>
> Bibhrajit wrote:
>
>
> What do you mean by "add the height"?
>
> Something like this?
>
> x = 1:10 ;
> y = rand(size(x)) ;
>
> bar(x,y) ;
> text(x,y,cellstr(num2str(y(:),2)), ...
> 'verticalalignment','bottom', ...
> 'horizontalalignment','center' )
>
> hth
> Jos

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com