Info
This question is closed. Reopen it to edit or answer.
How can I fit data same as app output?
1 view (last 30 days)
Show older comments
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)
<<
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155684/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155686/image.jpeg)
>>
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!