{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Midterm2 solution 06'

# Midterm2 solution 06' - Grade for Points on Midterm 1...

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

Grade for… Points on Midterm 1 80.5 Points on Prob 1 32 Points on Prob 2 25 Points on Prob 3 23.5

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

View Full Document
Problem 1 Category Specific Point PART A Find used correctly 5 5 Values set correctly 5 5 PART B Median found correctly 1 0 2 0 Rows <= median correcly removed 2 0 sort index found correctly 2 2 Employees sorted correctly 3 3 PART C Correct coefficients array 3 3 Correct constants array 3 2 Correctly used left divide 4 4 PART D syms used correctly 1 0 Equations correct (2 pts each) 6 0 solve used correctly 3 0 PART E SummedTerms initialized 2 2 for used correctly 2 2 for looping condition correct 2 2 SummedTerms updated correctly 2 2 Equation correct 2 0 TOTAL this question 50 32 Points Available Points Awarded Index of rows with salary > median found % ==================================== % PART A ndx = find(B==A); B(ndx) = A(ndx); % ==================================== % ==================================== % PART B % first remove rows with salary <= the median salary med = median(Employees(:,2)); ndx1 = find(Employees(:,2)>med);
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 12

Midterm2 solution 06' - Grade for Points on Midterm 1...

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

View Full Document
Ask a homework question - tutors are online