MATLAB Function Reference    
cmopts

Get name of source control system, and for PVCS, get project filename

Graphical Interface

As an alternative to cmopts, use preferences. Select File -> Preferences in the MATLAB desktop, and then select General -> Source Control.

Syntax

Description

cmopts returns the name of the source control system you selected using preferences, which is one of the following:

If you have not selected a source control system, cmopts returns

out = cmopts('DefaultConfigFile') returns the name of the project configuration file. This is used for the PVCS source control system only.

Specifying a Source Control System

To specify the source control system:

  1. From the MATLAB Editor window or from a Simulink or Stateflow model window, select File -> Source Control -> Preferences.

    The Preferences dialog box opens.

  1. In the left pane, click the + for General, and then select Source Control.

    The currently selected system is shown.

  1. Select the system you want to use from the Source control system list.
  2. Click OK.

For PVCS Only: Specifying the Project Configuration File

If you use the PVCS source control system, you must specify a project configuration file in cmopts.m. The cmopts.m file is located in $matlabroot\toolbox\local, where $matlabroot is the directory in which MATLAB is installed.

Open cmopts.m in the MATLAB Editor or another text editor. Specify the project configuration file in the section that starts with % BEGIN CUSTOMIZATION SECTION. Assign the name of your project file, including the full pathname, to the variable 'DefaultConfigFile'. Then save cmopts.m.

Examples

Example - Specify the Project Configuration File for PVCS

If the project configuration file is Projmgr.cfg, add the following line in cmopts.m.

Then, typing

returns

See Also

checkin, checkout, customverctrl


 closereq colamd