Current location - Loan Platform Complete Network - Big data management - MATLAB using the RAND function to generate for 0, variance of 1 10 * 10 normal distribution of random array A, and then statistics in A greater than
MATLAB using the RAND function to generate for 0, variance of 1 10 * 10 normal distribution of random array A, and then statistics in A greater than
First of all, I want to tell you that the function that generates the normal distribution is randn, the rand function is to generate 0 to 1 mean and distribution

The following is the program:

A = randn(10,10); %%%% Generate the A that you want

%%%% The following three lines are to draw a graph to show you if you want the normal distribution %%%%%

< p>b = A(:);

a1=sort(b);

plot(a1,normpdf(a1,0,1),'r')

%%%%%%%%%%%%%%%%%%%%%%%%%%%

n = length(find(A>1)) %%%%%% count the number of A that is greater than 1. Your title is incomplete, modify the numbers yourself

The diagram will not be posted, run the program yourself