| Products & Services | Industries | 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 checkin function, use File > Source Control > Check In in the Editor, the Simulink® product, or the Stateflow® product, or the context menu of the Current Folder browser.
checkin('filename','comments','comment_text')
checkin({'filename1','filename2'},'comments','comment_text')
checkin('filename','comments', 'comment_text','option','value')
checkin('filename','comments','comment_text') checks in the file named filename to the source control system. Use the full path for filename and include the file extension. You must save the file before checking it in, but the file can be open or closed. The comment_text is a MATLAB string containing checkin comments for the source control system. You must supply comments and comment_text.
checkin({'filename1','filename2'},'comments','comment_text') checks in the files filename1 through filenamen to the source control system. Use the full paths for the files and include file extensions. Comments apply to all files checked in.
checkin('filename','comments', 'comment_text','option','value') provides additional checkin options. For multiple file names, use an array of strings instead of filename, that is, {'filename1','filename2',...}. Options apply to all file names. The option and value arguments are shown in the following table.
option Argument | value Argument | Purpose |
|---|---|---|
filename is checked in even if the file has not changed since it was checked out. | ||
filename is not checked in if there were no changes since checkout. | ||
filename is checked in with comments, and is automatically checked out. | ||
filename is checked in with comments but does not remain checked out. |
Check the file /myserver/mymfiles/clock.m into the source control system, with the comment Adjustment for leapyear:
checkin('/myserver/mymfiles/clock.m','comments',...
'Adjustment for leapyear')Check two files into the source control system, using the same comment for each:
checkin({'/myserver/mymfiles/clock.m', ...
'/myserver/mymfiles/calendar.m'},'comments',...
'Adjustment for leapyear')Check the file /myserver/mymfiles/clock.m into the source control system and keep the file checked out:
checkin('/myserver/mymfiles/clock.m','comments',...
'Adjustment for leapyear','lock','on')checkout, cmopts, undocheckout
For Microsoft Windows platforms, use verctrl.
For more information, see Checking Files Into the Source Control System on UNIX Platforms.
![]() | char | checkout | ![]() |

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 |