% This is a Matlab function m-file called by the matlab % script sam_mfile.m. % function y=f1(x) % y=sin(x); % % note that if f1 is a vector function where x is a array of values % you can evaluate the function component-wise by using .*, ./ operations % ... for example y=cos(x.^2 + 2./x);