|On this page…|
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, click Save on the Editor tab, select Save As, and supply a different file name before you undo the checkout. Undo the checkout using the Current Folder browser.
An error appears in the Command Window if the file is not checked out.
The undocheckout function takes this form:
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