Error in creating a function
1 view (last 30 days)
Show older comments
GEORGIOS BEKAS
on 2 Aug 2018
Commented: GEORGIOS BEKAS
on 2 Aug 2018
What's wrong in the following expression?
ObjectiveFunction = @x() sim(net, x')
2 Comments
Accepted Answer
madhan ravi
on 2 Aug 2018
Edited: madhan ravi
on 2 Aug 2018
hi try this,
ObjectiveFunction = @(x) sim(net, x')
REASON: FUNCTION HANDLE SHOULD BE DETERMINED INSIDE PARENTHESES.
0 Comments
More Answers (0)
See Also
Categories
Find more on Chebyshev in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!