How to generate stand alone sub function in codegen

function b= func1()
b = func2();
end
I use codegen to generate C code for func1, but the generated C code don't have entrance of func2 (funct2 is inline in func1)
How to generate stand alone sub function in codegen, and func2 has it's own entrance ?

 採用された回答

Xie Shipley
Xie Shipley 2023 年 12 月 19 日

0 投票

coder.inline("never");

その他の回答 (0 件)

製品

リリース

R2022b

質問済み:

2023 年 12 月 18 日

回答済み:

2023 年 12 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by