Desktop Tools and Development Environment Previous page   Next Page

Undoing the Checkout

You can undo the checkout for files. The file remains checked in, and does not have any of the changes you made since you checked it out. To save any changes you have made since checking out a file, select File -> Save As, and supply a different filename before you undo the checkout. Undo the checkout using the Current Directory browser for one or more files. For only one file, you can also use the Editor/Debugger, Simulink, or Stateflow.

Undoing the Checkout for Files Using the Current Directory Browser

  1. In the MATLAB Current Directory browser, select the files for which you want to undo the checkout.
  2. Right-click, and from the context menu, select Source Control -> Undo Checkout. MATLAB undoes the checkout.

An error appears in the Command Window if the file is not checked out.

Undoing the Checkout for a File Using the Editor/Debugger, Simulink, or Stateflow

  1. Open the M-file, Simulink model, or Stateflow chart for which you want to undo the checkout.
  2. Select File -> Source Control -> Undo Checkout. MATLAB undoes the checkout.

Function Alternative

The undocheckout function takes this form:

undocheckout({'file1','file2', ...})

Use the complete path for filen and include the file extension. For example, to undo the checkout for the files clock.m and calendar.m, type

undocheckout({'\myserver\mymfiles\clock.m',... 
'\myserver\mymfiles\calendar.m'})

Previous page  Checking Files Out of the Source Control System GUI Reference for Desktop Tools and Development Environment Next page

© 1994-2005 The MathWorks, Inc.