How can I use fminsearch inside a Simscape component's source code?

I'm trying to use the fminsearch function to help set parameters for a custom Simscape component. However, when I try and load the code, I get an error that there's an "unexpected @". In fact, I can't seem to use a function handle at all within Simscape, so I therefore can't use fminsearch. Is there any way around this? Or an alternative that works?

Respuestas (0)

Categorías

Más información sobre Simulink en Centro de ayuda y File Exchange.

Productos

Versión

R2021a

Preguntada:

el 30 de Sept. de 2021

Comentada:

el 30 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by