Sunday, 28 October 2012

Program for Normal Distribution using PDF

Here is a program of MAT LAB for normal distribution N(mu,sigma) using PDF.
PDF stands for Probability Density Function.

open MAT LAB open new script and paste this program :-

Program :-
-----------------------------------------------------------------------------------------------------------------------


mu=100;
sigma=15;
xmin=70;
xmax=130;
n=100;
k=10000;
x=linspace(xmin,xmax,n);
p=normpdf(x,mu,sigma);
plot(x,p);
xlabel('y');
ylabel('pdf');
title('probability density function');

-----------------------------------------------------------------------------------------------------------------------


just paste the program, press run. :-

Output :-

IF YOU HAVE ANY QUERY THAN CONTACT US OR GIVE YOUR QUERY IN THE QUERY OPTION.      
                                                            GOOD LUCK

More embedded projects >>....                             More MAT LAB projects>>...



No comments: