Development Environment | ![]() ![]() |
Function Alternative for Checking Out Files
Use checkout
to check a file out of the source control system. You can check out multiple files at once and specify check-out options. The checkout
function has this form.
checkout({'file1',...'filen'},'option
','value
')
For file
, use the complete path.
lock
option to off
.force
option to on
.revision
option, and assign the revision number to the value
argument.The options apply to all files checked out. The file can be open or closed when you use checkout
.
Example - Check out a Specific Revision of a File
To check out the 1.1 revision of the file clock.m
, type
checkout('\matlab\mymfiles\clock.m', 'revision', '1.1')
For other examples, see the reference page for checkout
.
![]() | Checking Files Out of the SCS | Undoing the Check-Out | ![]() |