How can i get a bell curve onto a histogram
Show older comments
global datas;
hist(handles.axes5,datas.data);
hold on;;
plot(handles.axes5,q)
xlabel(handles.axes5,'VLF Wave Strenth(Watts)','FontSize',12);
ylabel(handles.axes5,'Frequency','FontSize',12);
title(handles.axes5,'Super Sid Histogram','FontSize',12);
2 Comments
Image Analyst
on 24 Feb 2012
What is q? Where did you get it?
Walter Roberson
on 24 Feb 2012
By the way, "data" is already plural. The singular of "data" is "datum".
Answers (2)
the cyclist
on 24 Feb 2012
0 votes
It would be good if you could give more detail about what you want. For example, do you want to fit the "bell curve" to the data, or do you have the parameters already? I am just taking a guess here, but you might want to look at the command histfit() and normfit(). If you don't necessarily mean a normal distribution when you say "bell curve", you might also investigate the function ksdensity(), which is a non-parametric approach to fitting a smooth curve to discrete data.
Walter Roberson
on 24 Feb 2012
Change the
hold on;;
to
hold(handles.axes5, 'on');
Categories
Find more on Half-Normal Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!