Normal distribution % basic functions mew=100 sig=10 x=90 normpdf ( x,mew,sig ) 1/sig/ sqrt (2*pi)*exp(-(x-mew)^2/sig^2/2) x=50:150 f= normpdf ( x,mew,sig ) plot( x,f ) x=50:150 F= normcdf ( x,mew,sig ) plot( x,F ) p=0.1 norminv ( p,mew,sig ) sig 5 prctile sig 2 norminv 0 plot posterior pdf 025 sign.
Learn more about normal distribution, integration
This command gives output in the form of an array repetition of the original array. Repmat in Matlab is one of the commands in Matlab which is used for array manipulations.