You can't start out myHW7.m with these lines:
function constant = reaeration(array)
function resultarray = deOxygen(array , constant)
Those are function definitions which you define later in the m-file. So you're basically doing it twice and the first time you define them there's not even any body to the function. So, I assume you just want to call them, but to call them you need a function line with myHW7 in it:
function myHW7()
load PollutionData.txt;
array = PollutionData(:,1);
timearray = (0:.5:250);
constant = reaeration(array)
resultarray = deOxygen(array , constant)
return
Best Answer