How can I fit data same as app output?

Can anyone please help me in the following figure. When I use dfittool app, the result is good. But trying with following code, I am not able to get the same figure as in the second figure. %code,K is attached figure,hist(K);hold on; pd= fitdist(K','Kernel'); x_values = -30:0.1:40; y = pdf(pd,x_values); plot(x_values,y*(max(hist(K))/max(y)),'r','LineWidth',2)
<<
>>

Réponses (0)

Cette question est clôturée.

Question posée :

Jab
le 12 Août 2016

Clôturé :

le 20 Août 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by