Borrar filtros
Borrar filtros

Error in creating a function

2 visualizaciones (últimos 30 días)
GEORGIOS BEKAS
GEORGIOS BEKAS el 2 de Ag. de 2018
Comentada: GEORGIOS BEKAS el 2 de Ag. de 2018
What's wrong in the following expression?
ObjectiveFunction = @x() sim(net, x')
  2 comentarios
Stephen23
Stephen23 el 2 de Ag. de 2018
@x() sim(net, x')
^^^
should be:
@(x) sim(net, x')
^^^
GEORGIOS BEKAS
GEORGIOS BEKAS el 2 de Ag. de 2018
thanks.

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 2 de Ag. de 2018
Editada: madhan ravi el 2 de Ag. de 2018
hi try this,
ObjectiveFunction = @(x) sim(net, x')
REASON: FUNCTION HANDLE SHOULD BE DETERMINED INSIDE PARENTHESES.

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by