Desktop Tools and Development Environment |
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
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
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'})
Checking Files Out of the Source Control System | GUI Reference for Desktop Tools and Development Environment |
© 1994-2005 The MathWorks, Inc.