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?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 9월 30일

댓글:

2021년 9월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by