This function performs the same calculation as sqrt(), but the arguments are limited to arrays of real, non-negative numbers. MATLAB also contains the square root function realsqrt(). and plot for various distributions close all % % 4. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |