Unit12 Lab B - Prob8_B_11 function...

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

View Full Document Right Arrow Icon
Prob8_B_11 function Prob8_B_11(studentsGrad_yr1, projEnrollV, projNotFulV) % create a plot of modeling results for students graduating % over the next 15 years. Modeling relation is as follows. % numGrad(YR) = projNotFulfill(YR-1) . .. % + projEnrollV(YR) . .. % - projNotFulV(YR) % INPUT: studentsGrad_yr1, scalar, number of Yr1 graduates % projEnrollV, vector, N elements, the enrollment % projected for the senior class % projNotFulV, vector, N elements, number of % students not meeting requirements % generates a graph of number graduated for N years. % sample call: % yr1_grads = 90; % enrollment = [95, 81, 76, 88, 96, 121, 133, . .. % 112, 91, 89, 79, 74, 91, 121, 75]; % notFulfilling = [5, 6, 3, 10, 7, 4, 6, 8, 8, . .. % 3, 4, 3, 2, 10, 8]; % Prob8_B_11(yr1_grads, enrollment, notFulfilling) numGrad(1) = studentsGrad_yr1; numYears = length(projEnrollV); for yrCounter = 2:numYears numGrad(yrCounter) = projNotFulV(yrCounter - 1) . .. + projEnrollV(yrCounter) .
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.

Page1 / 3

Unit12 Lab B - Prob8_B_11 function...

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