Hi, can I compile c files drom simulink project from a command line in Linux? (Don't want to open/run Matlab!)

1 vue (au cours des 30 derniers jours)
Hi,
I want to set up an automatic build process on a linux machine for my simulink project. Therefore, I want to compile my project using the bash script. I know that I can compile the project using rtwbuild('MyProject') in the matlab command line. Can I run this command from a bash script as well, without opening matlab or even without having matlab installed?
Best,
Jojo

Réponses (2)

Hari Krishna Ravuri
Hari Krishna Ravuri le 16 Juil 2019
Hello,
I understood that, you want to generate C/C++ code for your MATLAB Project using rtwbuild function, from a GNU Bash script without opening MATLAB (OR) without having MATLAB installed.
rtwbuild is a built-in function in MATLAB and It is not possible to invoke a MATLAB function outside MATLAB. So, C/C++ code for a MATLAB project cannot be generated by calling rtwbuild from Bash. As rtwbuild is a built-in function, you need MATLAB to be installed on the system in order to invoke the function call.

Joachim Fischer
Joachim Fischer le 17 Juil 2019
That's exactly what I want to do!
Is there any other way to do so?

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by