help-octave
[Top][All Lists]
Advanced

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

difficulties with Histograms


From: altamiranomaxi
Subject: difficulties with Histograms
Date: Mon, 25 Jan 2016 06:45:30 -0800 (PST)

Hello!

I've got some issues while trying to plot an histogram, in order to compare
it with a p.d.f. given.

1) First of all, I can't find the best way to make an histogram with the
frequencies of appearance of each value. I've used the commands below.
2) Also, although at first the histogram was being shown correctly, now it
just doesnt show up. When the plot appears, it has only the p.d.f. in it.
        
        g=[];
        for i=1:ensayos
                g=[g,TiempoMuerte_Cte(N,c)];
        endfor
        h = hist(g,ensayos,1)
        hold on
        x = 0:0.1:30;
        x_2=exp(-x) - x/(N)- 1; 
        f = N*exp(N*(x_2));     
        plot(x,f)




--
View this message in context: 
http://octave.1599824.n4.nabble.com/difficulties-with-Histograms-tp4674511.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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