Development Environment    

Undoing the Check-Out

You can undo the check-out for a file. The file remains checked in, without any of the changes you made since you checked them out. You can undo the check-out of a single file or multiple files.

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

  1. Click OK.

Function Alternative for Undoing a Check-Out

Use the uncheckout as the first argument in the verctrl function to undo a check-out. Note that the verctrl function with the uncheckout 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. The verctrl function with the uncheckout argument has this form:


  Getting the Latest Version of Files from the Source Control System Removing Files from the Source Control System