Here is a program of MAT LAB for normal distribution N(mu,sigma) using CDF.
CDF stands for Cumulative 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);
c=normcdf(x,mu,sigma);
plot(x,c);
xlabel('x');
ylabel('cdf');
title('cumulative density function');
-----------------------------------------------------------------------------------------------------------------------
just paste the program, press run.
Output :-
CDF stands for Cumulative 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);
c=normcdf(x,mu,sigma);
plot(x,c);
xlabel('x');
ylabel('cdf');
title('cumulative 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