Filter löschen
Filter löschen

Error in creating a function

2 Ansichten (letzte 30 Tage)
GEORGIOS BEKAS
GEORGIOS BEKAS am 2 Aug. 2018
Kommentiert: GEORGIOS BEKAS am 2 Aug. 2018
What's wrong in the following expression?
ObjectiveFunction = @x() sim(net, x')
  2 Kommentare
Stephen23
Stephen23 am 2 Aug. 2018
@x() sim(net, x')
^^^
should be:
@(x) sim(net, x')
^^^
GEORGIOS BEKAS
GEORGIOS BEKAS am 2 Aug. 2018
thanks.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by