フィルターのクリア

Code in Matlab function block has not been inline code

2 ビュー (過去 30 日間)
Chuyen
Chuyen 2023 年 3 月 15 日
回答済み: Diya Tulshan 2023 年 6 月 13 日
Hello all,
I got an issue with Matlab function block code-generation that a code function generated from this block was not in inline function.
Thus, my question is HOW TO MAKE A FUNCTION INCLUDING IN MATLAB FUNCTION CAN GENERATE AS AN INLINE FUNCTION?
  1 件のコメント
Chuyen
Chuyen 2023 年 3 月 15 日
I have the rough solution for this by adding coder.inline('always') inside the function need to be inlined, but not sure that it is impacted or not, or usable?

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

回答 (1 件)

Diya Tulshan
Diya Tulshan 2023 年 6 月 13 日
Hi Chuyen,
I understand that you want to inline the code function generated using the MATLAB function block in SIMULINK.
One of the possible workarounds could be to follow steps given below:-
  • Open the MATLAB function block dialog box by right clicking on the block.
  • Select the 'Block Parameters' option. In the dialog box, click on 'Code Generation'.
  • Select the 'Inline' option for Function Packaging.
For better understanding, kindly go through the following links:

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by