What's wrong in the following expression?
ObjectiveFunction = @x() sim(net, x')

2 commentaires

@x() sim(net, x')
^^^
should be:
@(x) sim(net, x')
^^^
GEORGIOS BEKAS
GEORGIOS BEKAS le 2 Août 2018
thanks.

Connectez-vous pour commenter.

 Réponse acceptée

madhan ravi
madhan ravi le 2 Août 2018
Modifié(e) : madhan ravi le 2 Août 2018

0 votes

hi try this,
ObjectiveFunction = @(x) sim(net, x')
REASON: FUNCTION HANDLE SHOULD BE DETERMINED INSIDE PARENTHESES.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by