Suppose in func.m we have
func.m
function out = func(in) for i=1:1000 out=i; end end
and after entering >>
>>