| MATLAB® | ![]() |
When you undo the checkout for a file, 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 file name 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, or the Simulink or Stateflow products.
In the MATLAB Current Directory browser, select the file or files for which you want to undo the checkout.
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.
Open the M-file, Simulink model, or Stateflow chart for which you want to undo the checkout.
Select File > Source Control > Undo Checkout. MATLAB undoes the checkout.
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 on UNIX | Internationalization | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |