Development Environment    

Getting the Latest Version of Files from the Source Control System

You can get the latest version of a file from the source control system for viewing and compiling, but not editing. You can get a single file, a single directory, multiple files, or multiple directories. The file or files will be tagged read only. The list of files should contain either files or directories but not both.

Getting the Latest Version of a Single File

To get the latest version of a single file:

  1. Select Source Control -> Get Latest Version from the File menu in the MATLAB editor, Simulink model, or Stateflow model.
  1. The MATLAB Get latest version dialog box opens.

  1. Click OK.

Getting the Latest Version of Multiple Files

To get the latest version of multiple files:

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

  1. Right click on the selected files.
  2. Select Source Control -> Get Latest Version from the pop-up menu.
  1. The MATLAB Get latest version dialog box opens.

  1. Click OK.

Function Alternative for Getting Latest Version

Use get as the first argument in the verctrl function to get a file from the source control system. Note that the verctrl function with the get 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 get a single file or multiple files. The verctrl function with the get argument has this form:


  Checking Files into the Source Control System Undoing the Check-Out