MATLAB Answers

Changing function packaging of Simulink Functions to inlined

11 views (last 30 days)
Monika Jaskolka
Monika Jaskolka on 20 Jul 2020
Commented: Monika Jaskolka on 20 Jul 2020
Why is the Function Packaging option disabled for Simulink Functions? I'd like to edit this parameter to modify how the function is code-generated. I have Embedded Coder installed.
Here is an example of a very simple Simulink Function that does nothing, yet it is still generated as a function. Is it possible to force it to be inlined?


Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 20 Jul 2020
Inline would make that block a regular subsystem block, not a Simulink Function. A Simulink Function is called by its name, so I don't think there is any other way.

  1 Comment

Monika Jaskolka
Monika Jaskolka on 20 Jul 2020
You can have inlined functions in C, so I think it would make sense to be able to generate inlined functions out of Simulink Functions.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by