How can I pass a constant to fminsearch? So like, if I have a function:
f(x,y,z), how can I do an fminsearch with a fixed value of x?
fminsearch(@f, [0,0,0]);
I know I can write a new function and do an fminsearch on it:
function returnValue = f2(y, z)
returnValue = f(5, y, z);
...
fminsearch(@f2, [0,0]);
My requirement, is I need to do this without defining a new function. Thanks!!!