MATLAB: Functions

function handleMATLAB

Hi all.
if a have a function:
x_out = f(x), where x is some vector.
How would i create a new function where a subset of the vector has been given as input:
x_out = f(x(3:4))
Thanks a lot

Best Answer

f34 = @(x) f(x(3:4));