{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw05problem3

# hw05problem3 - ENGR 12600 Fall 2008 Solution to Homework 5...

This preview shows pages 1–2. Sign up to view the full content.

% ENGR 12600 Fall 2008 % Solution to Homework 5, Problem 5. % This program calculates the statistics for the width data collected in ENGR 126 class. % It also generates a histogram of the data. % ---- Input Section ---- % Read the sunflower seed data into MATLAB data_set = load('hw5problem3.dat'); with_treatment = data_set(:,1); no_treatment = data_set(:,2); % ---- Calculation Section ---- % Calculates the Statistics for the heights treated and non-treated plants treated_mean = mean(with_treatment); % mean height of treated plants treated_stdev = std(with_treatment); % standard deviation of height of treated plants treated_minimum = min(with_treatment); % minimum height of treated plants treated_maximum = max(with_treatment); % maximum height of treated plants untreated_mean = mean(with_treatment); % mean height of untreated plants untreated_stdev = std(with_treatment); % standard deviation of height of untreated plants untreated_minimum = min(with_treatment); % minimum height of untreated plants untreated_maximum = max(with_treatment);

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern