Question: MATLAB QUESTION 3: Write a MATLAB program that: 1. generates a vector containing one million Gaussian random numbers with zero mean and unit standard deviation

MATLAB QUESTION 3:

MATLAB QUESTION 3: Write a MATLAB program that: 1. generates a vector

Write a MATLAB program that: 1. generates a vector containing one million Gaussian random numbers with zero mean and unit standard deviation (i.e., just use 'randn') standard deviation is equal to 1 sigma) 3. counts the number of elements that are not within 5 sigma (note: length(a) returns the number of elements in vector 'a) 4. outputs the percentage of elements, out of the total, that are not within 5 sigma NOTE: The MATLAB help info for randn (recall that the standard normal distribution has a mean of zero and a standard deviation of unity) randn Normally distributed pseudorandom numbers R = randn(N) returns an N-by-N matrix containing pseudorandom values drawn from the standard normal distribution. randn(M,N) or randn([M,N rturns an M-by-N matrix. randn(M,N,P.. or randn([M,N,P..]) returns an M-by-N-by-P-by.. array. randn returns a scalar. randn(SIZE(A)) returns an array the same size as A

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!