Try/Catch inside the Simulink Function

9 ビュー (過去 30 日間)
Mohammadreza Chalak Qazani
Mohammadreza Chalak Qazani 2019 年 10 月 24 日
コメント済み: Syed Ali Zaryab 2020 年 11 月 30 日
I am using the Simulink of MATLAB 2017a. There is a function inside the Simulink using lqr code inside the function.
The lqr function is very sensitive and it can not generate the information with every set of weights. Then, I am trying to use try and catch to skipe the situation that lqr can not find the feasible solution.
But problem is that I can not use the try/catch inside the Simulink Function. I have faced with error which says "code generation does not support TRY/CATCH construction". Any idea how can i use try/catch inside the Simulink Function.
If you are recomending "coder.extrinsic" what should I put instead of the function name? Because I have already tried this and it does not work.
  2 件のコメント
Vincenz Frenzel
Vincenz Frenzel 2020 年 5 月 13 日
Did you get this problem fixed? Similar issue...
Syed Ali Zaryab
Syed Ali Zaryab 2020 年 11 月 30 日
I am facing the same problem. Did you find a way to resolve it?

サインインしてコメントする。

回答 (0 件)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by