Error in creating a function

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

2 Commenti

@x() sim(net, x')
^^^
should be:
@(x) sim(net, x')
^^^
thanks.

Accedi per commentare.

 Risposta accettata

madhan ravi
madhan ravi il 2 Ago 2018
Modificato: madhan ravi il 2 Ago 2018
hi try this,
ObjectiveFunction = @(x) sim(net, x')
REASON: FUNCTION HANDLE SHOULD BE DETERMINED INSIDE PARENTHESES.

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by