| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
As an alternative to the undocheckout function, select Source Control > Undo Checkout in the File menu of the Editor, Simulink software, or Stateflow software, or in the context menu of the Current Folder browser.
undocheckout('filename')
undocheckout({'filename1','filename2',
...,'filenamen'})
undocheckout('filename') makes the file filename available for checkout, where filename does not reflect any of the changes you made after you last checked it out. Use the full path for filename and include the file extension.
undocheckout({'filename1','filename2', ...,'filenamen'}) makes filename1 through filenamen available for checkout, where the files do not reflect any of the changes you made after you last checked them out. Use the full paths for the file names and include the file extensions.
Undo the checkouts of /myserver/mymfiles/clock.m and /myserver/mymfiles/calendar.m from the source control system:
undocheckout({'/myserver/mymfiles/clock.m', ...
'/myserver/mymfiles/calendar.m'})
For Microsoft Windows platforms, use verctrl.
For more information, see Undoing the Checkout on UNIX Platforms.
![]() | uiwait | unicode2native | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |