MATLAB: Your objective function must return a scalar value.

optimal

Dear Friends,
I am facing with the problem in my optimization " Your objective function must return a scalar value"
I write my function name in my optimization part of my matlab, ga or fmincon or others. that function read another function also.
a copy of them are attached.
Thanks and a dvice
M.H.

Best Answer

Thanks for your response but I got
[x{1:ndata}] = dataObjs.XData ;
Unrecognized method, property, or field 'XData' for class
'matlab.graphics.GraphicsPlaceholder'.
Related Question