How to generate stand alone sub function in codegen

3 次查看(过去 30 天)
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
coder.inline("never");

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by