Undefined function 'twofunc' for input arguments of type 'double'?

while calculation optimization problem by using genetic alorith solver in optimization tool , "it says Undefined function 'twofunc' for input arguments of type 'double'", what does it mean?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 17 Nov. 2017

0 Stimmen

Your code calls a function named twofunc but your code does not define twofunc.
Another possibility is that you used a variable named twofunc before you assigned a value to it.
There is no Mathworks supplied function named twofunc anywhere in any toolbox.

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by