Recommended practises for using git when collaborating using MATLAB/Simulink
Show older comments
We're a professional team who are collaborating on a larger MATLAB/Simulink project, where the resulting Simulink model is exported to C/C++ code.
I'm unable to find clear guidelines on how to most efficiently use a version control system such as Git alongside large and complicated Simulink diagrams.
Our diagram consists of both Subsystems (https://se.mathworks.com/help/releases/R2022a/simulink/slref/subsystem.html) and Model references (https://se.mathworks.com/help/releases/R2022a/simulink/slref/model.html), with MATLAB function blocks within them.
In 2020 and 2021, it seems that the official advice is to create "dummy" function calls from within the MATLAB function blocks, in order to allow properly version control of the MATLAB code (see https://se.mathworks.com/matlabcentral/answers/748477-how-do-i-manage-the-contents-of-matlab-function-blocks-via-source-control and https://se.mathworks.com/matlabcentral/answers/1454589-how-do-i-separate-the-contents-of-my-matlab-function-blocks-from-my-slx-file-for-easier-version-cont?s_tid=answers_rc1-2_p2_MLT). As technology rapidly evolves, we're unsure whether this approach is still what is officially recommended by Mathworks.
This article (https://se.mathworks.com/help/matlab/matlab_prog/use-source-control-with-projects.html) primarily concerns version control, but not collaboration.
As result, the following questions have arisen:
- Are there any official guidelines on how to collaborate on Simulink diagrams as a team, whilst using a version control systems such as Git?
- Does extracting the MATLAB code from the MATLAB function blocks create performance issues when exporting the Simulink models to C/C++ code?
Thank you very much in advance for your time and assistance.
Accepted Answer
More Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!