This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % % --- INPUTS ---% % --- CALCULATIONS ---rnum = randn(1,1000)*5 + 80; % Generates 1000 Gaussian random variatlse with mean of 80 and s.d. of 5 rnum_mean = mean(rnum); rnum_std = std(rnum); rnum_sorted = sort(rnum); % --- OUTPUTS ----% hist(rnum,10) % Formats the graph according to proper plotting format title('Histogram of random numbers generated having a mean of 80 and standard deviation of 5') ylabel('Frequency') xlabel('Number value')...
View Full Document
This note was uploaded on 08/25/2011 for the course ENGR 195 taught by Professor Staff during the Fall '08 term at Purdue University-West Lafayette.
- Fall '08