This is what I enter in my Editor window verbatim:
function y = f(x)
y = ((exp(1).^(-0.2*x)))*(cos(2*x))-(0.15*x.^2)+1;
This is what I receive in the Command window after I run the function:
>> f Error using f (line 2) Not enough input arguments.