let's say we have function like below:
function Output=DoSomething(f)
...
...
end
where 'f' is a function that user inputs , like 'sin(t)' , 'x^2' or a vector of functions. the function DoSomething gets f and perform some operation on it. for example, evaluates 'f' at t=pi/2,pi,2*pi,... and put result in Output vector. how can this be done in MATLAB? should f be an string variable? if yes, does it need to convert to another data type? i'm getting errors doing this.