How can I avoid using coder.extrinsic in MATLAB function block for using set_param?

1 回表示 (過去 30 日間)
Saeed Soltani
Saeed Soltani 2016 年 8 月 3 日
コメント済み: Amira chriki 2018 年 2 月 27 日
Hi, I am trying to call a m file from Simulink. I have to use set_param in my code in MATLAB function block, but I am getting this error:
Function 'set_param' is not supported for code generation. Consider adding coder.extrinsic('set_param') at the top of the function to bypass code generation.
But I rather not to use it because it reduce the speed of simulation strongly.
Any idea?

回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by