class3a_activity4 - % % --- INPUTS ---% % --- CALCULATIONS...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. % % Section: % % Assignment #: Class 3a, Activity 1 % % Academic Integrity Statement: % % I/we have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are submitting % is my/our own original work. % % Program Description: Loading data and performing descriptive statistics. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

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.

Ask a homework question - tutors are online