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)
<<
>>

답변 (0개)

이 질문은 마감되었습니다.

질문:

Jab
2016년 8월 12일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by