Please compute using MATLAB Generate 10000 Gaussian random n
Please compute using MATLAB:
Generate 10,000 Gaussian random numbers with a mean of 80 and standard deviation of 23.5. (You\'ll want to suppress the output so that you don\'t overwhelm the command window with data.) Use the mean function to confirm that your arrary actually has a mean of 80. Use the std function to confirm that your standard deviation is actually 23.5.
Solution
main.m
clc;
close all;
clear all;
x = 80 + 23.5 * randn(10000,1);
M = mean(x);
s = std(x);
fprintf(\'%.0f\ \',M)
fprintf(\'%.1f\ \',s)
Output:
80
23.5
