Sunday, 28 October 2012

Histogram of Random Number Distribution

Here is a program for random number distribution from N(mu,sigma).  (HISTOGRAM)

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

Program :-

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



mu=100;
sigma=15;
k=10000;
y=normrnd(mu,sigma,k,1);
%subplot(133);
hist(y,20);
xlabel('y');
ylabel('frequency');
title('histogram of random values');

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

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: