How can i get a bell curve onto a histogram

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

What is q? Where did you get it?
By the way, "data" is already plural. The singular of "data" is "datum".

Sign in to comment.

Answers (2)

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.

Tags

Asked:

on 24 Feb 2012

Community Treasure Hunt

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

Start Hunting!