MATLAB Answers

MATLAB Coder: Option "generate one file for each MATLAB file"

14 views (last 30 days)
Hello, I want to produce C/C++ standalone Code with MATLAB Coder. Although i took the option "generate one file for each MATLAB file" some MATLAB files are translated together in one C/C++ file. Is there another option to take influence on that? Kind regards Andreas
Andreas Schröffer
Andreas Schröffer on 30 Aug 2017
Thank you.
The option coder.inline('never') was exactly, what i was searching for.

Sign in to comment.

Accepted Answer

Carl on 28 Aug 2017
Possible solutions:
  1. Provide both functions as an entry-point function
  2. Use the coder.inline flag to control whether a function gets inlined (see documentation below)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by