Development Environment    

Checking Files Out of the Source Control System

You can check out a single file or multiple files.

Checking out a Single File

To check out a single file from the source control system:

  1. Select Source Control -> Check Out from the File menu in the MATLAB Editor, Simulink model, or Stateflow model.
  1. The MATLAB Check out file(s) dialog box opens

.

  1. Click OK.
  1. The file is checked out from the source control system and is available to you for editing.

Checking out Multiple Files

To check out multiple files from the source control system:

  1. Select the files in the MATLAB Current Directory window,

  1. Right-click on the selected files.
  2. Select Source Control -> Check Out from the pop-up menu.
  1. The MATLAB Check out file(s) dialog box opens.

  1. Click OK.
  1. The files are checked out from the source control system and are available to you for editing.

Function Alternative for Checking Out Files

Use checkout as the first argument in the verctrl function to check a file out of the source control system. Note that the verctrl function with the checkout argument returns a logical 1 to the workspace if the file has changed on disk or a logical 0 to the workspace if the file has not changed on disk. You can check out a single file or multiple files. The verctrl function with the checkout argument has this form:


  Adding Files to the Source Control System Checking Files into the Source Control System