How can i get a bell curve onto a histogram?

I want a histfit graph but this does not work with a gui so I would like to know how to make this curve on the histfit graph. This is my code so far:
global datas;
hist(handles.axes5,datas.data);
hold on;
xlabel(handles.axes5,'VLF Wave Strenth(Watts)','FontSize',12);
ylabel(handles.axes5,'Frequency','FontSize',12);
title(handles.axes5,'Super Sid Histogram','FontSize',12);

댓글 수: 1

duplicate is at http://www.mathworks.com/matlabcentral/answers/30086-how-can-i-get-a-bell-curve-onto-a-histogram

댓글을 달려면 로그인하십시오.

답변 (1개)

Tom Lane
Tom Lane 2012년 2월 24일

0 개 추천

You'll need to do is to scale the histogram so that is has area 1.0, so it is comparable to a pdf that you superimpose on it. See my answer to this question:

카테고리

도움말 센터File Exchange에서 Calendar에 대해 자세히 알아보기

질문:

2012년 2월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by