Homework 2_partthree

Homework 2_partthree - 'B\n elseif(d<= m S fprintf'B\n...

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

View Full Document Right Arrow Icon
% Part 3 Script File [A,B] = xlsread( 'D:\RoLLiN\My Documents\EBS 130\grade_data.xls' ) input ( 'There are a 120 EBS-130 Students' ) %calculating mean c = sum(A(:,2)); m = c/120 % mean %calculating standard deviation S = std (A(:,2)); if (d > m +S) fprintf( 'A\n' ) elseif (d > m) fprintf(
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 'B\n' ) elseif (d <= m + S) fprintf( 'B\n' ) elseif (d > m - S) fprintf( 'C\n' ) elseif (d <= m) fprintf( 'C\n' ) elseif (d > m-2*S) fprintf( 'D\n' ) elseif (d <= m - S) fprintf( 'D\n' ) elseif (d <= m-2*S) fprintf( 'F\n' ) end print hw2_part3.m...
View Full Document

This note was uploaded on 04/11/2009 for the course ENG 100 taught by Professor Delwiche during the Spring '08 term at UC Davis.

Ask a homework question - tutors are online