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

2 Kommentare

@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

0 Stimmen

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

Weitere Antworten (0)

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by