Help me with "NORMPDF"

7 views (last 30 days)
Dongho Jin
Dongho Jin on 10 Sep 2014
Answered: Titus Edelhofer on 10 Sep 2014
Hello,
I really need help with my matlab file, specifically using normpdf.
I have attached a photo of my current status; where input matrix is pca transformed matrix Y = normpdf(matrix size of 1:240,16,mean,standard deviation) plot(Y)
and I do not get a plot anywhere near the normal distribution.
Can someone help me with this? Thanks!

Answers (1)

Titus Edelhofer
Titus Edelhofer on 10 Sep 2014
Hi,
how can you see, that this is not normally distributed? Could it be that you mix up the plot with the histogram? Try hist to plot your vector Y and I'm pretty sure it looks more like what you expect ...
Titus

Community Treasure Hunt

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

Start Hunting!