How does MATLAB's normpdf function work? -



How does MATLAB's normpdf function work? -

when trying plot normal pdf mean=0 , standard deviation=20 using matlab command normpdf() weird results, see picture.

the code used plot figure follows:

plot(normpdf((-100:0.1:100),0,20))

what right way of using function?

when phone call plot 1 argument, plots numbers on y axis, using index numbers of values x axis. if wanted x axis scaled properly, had provide them in first place. thus...

x = -100:0.1:100; plot(x,normpdf(x,0,20),'-')

matlab

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -