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
Post a Comment