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?
댓글 수: 1
Walter Roberson
2021년 9월 30일
All I find at the moment is https://www.mathworks.com/matlabcentral/answers/502654-solve-a-non-linear-equation-in-simscape
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!