Data Distribution

Hello, I have some data and i want to see it in plot that how it is distributed all over, like getting some plot , but the plot command donot give me smooth curve or response i want to see it in curve.Or u can say like gaussian distribution of my historgram like this one
Thanks in advance

답변 (2개)

Walter Roberson
Walter Roberson 2011년 9월 29일

0 개 추천

Perhaps you want to use hist() to draw a histogram of the data?

댓글 수: 1

developer
developer 2011년 9월 29일
but i want to see the curve plotting on to that histogram

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

Wayne King
Wayne King 2011년 9월 29일

0 개 추천

Then perhaps, you would like to try histfit() with some specified distribution.
histfit(randn(1e3,1),20,'normal')
or use ksdensity()
x = [randn(30,1); 5+randn(30,1)];
[f,xi] = ksdensity(x);
plot(xi,f);
The Wavelet Toolbox also has 1-D density estimation capability.

질문:

2011년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by