help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printing the value of frequency in a histogram plot


From: Andreas Weber
Subject: Re: printing the value of frequency in a histogram plot
Date: Wed, 04 Sep 2013 18:48:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

Am 04.09.2013 14:27, schrieb Adarsh:
> I am new to octave. I wanted to plot the value of  frequency for each bin on
> the histogram plot and save that plot in a pdf.
> What is the simplest and the best way to achieve this ?

Do you want something like

r=randn(100,1);
[NN,XX]=hist(r);
hist(r)
text(XX, 2(ones(numel(XX),1)), num2cell(NN))

print("out.pdf")

Regards, Andy


reply via email to

[Prev in Thread] Current Thread [Next in Thread]