Development Environment | ![]() ![]() |
Process of Interfacing to an SCS
You can interface to your source control system by using menus if you prefer a graphical user interface, or by using functions if you prefer to use the Command Window. There are some options you can perform using the functions that are not available with the menus - these are noted in the instructions.
Create M-files, Simulink files, or Stateflow files as you normally would and save the files. Then follow these steps to use MATLAB, Simulink, or Stateflow to interface with your source control system.
Steps |
Instructions |
|
1 |
Select the source control system to use. |
See Viewing or Selecting the Source Control System. |
2 |
Set up your source control system to correctly include the files. This is only required for some source control systems. |
For SourceSafe Only - Mirroring MATLAB Hierarchy For ClearCase on UNIX Only - Set a View and Check Out a Directory |
3 |
For PVCS only, specify the project configuration file in cmopts.m . |
Specifying the Project Configuration File - For PVCS Only |
4 |
Check the files into the source control system. Note that for some source control systems, you must check out the files before you can check them in. |
Checking Files into the Source Control System |
5 |
Next time you want to modify the files, open them in the MATLAB Editor, Simulink, or Stateflow, and check them out. |
Checking Files Out of the SCS |
6 |
Undo a check-out if you want the files to remain checked in, without any of the changes you made since you checked them out. |
Undoing the Check-Out |
![]() | Interfacing with Source Control Systems | Viewing or Selecting the Source Control System | ![]() |