hw05problem3 - % ENGR 12600 Fall 2008 % Solution to...

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

View Full Document Right Arrow Icon
% 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/12/2012 for the course ENGR 126 taught by Professor Oakes during the Fall '08 term at Purdue University.

Page1 / 2

hw05problem3 - % ENGR 12600 Fall 2008 % Solution to...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online