MATLAB Answers


what kind function of this?

Asked by uncung fgv on 11 Apr 2013
Xcp = fminsearch(@(x,pexp) fconst(x,Pexp),[1])
I have previously:
Pexp =[3 4 6 7 8 9 2 3 ]


Sign in to comment.


1 Answer

Answer by the cyclist
on 11 Apr 2013
 Accepted Answer

fminsearch() is a MATLAB function that find a local minimum of the input function.
I don't recognize fconst(), and your code gives me an error because MATLAB can't find it. Is that a function you wrote?


we have:
function y=fnconst(x,pexp);
and what is :
@ indicates an anonymous function.

Sign in to comment.