When you define a function, you need to describe its input arguments and output arguments.
This function definition has no inputs and no outputs
This function definition adds two numbers and returns a single result.
function c = addtwonumbers(a,b)
I'm assuming that the output is supposed to be the populations variable, so
function populations = PopAfterT(t,I0,S0,W0)