vcp creates backups of existing m-files for easy backtracking when editing code.
entered on the command line, looks for an m-file named 'myprogram.m' on the Matlab search path. If it is found at, say, /home/kevin/matlab/plotting/, then a backup copy named 'myprogram.m.000' will be created in /home/kevin/matlab/plotting/devel/ (if the 'devel' sub-directory does not exist, it will be created). Subsequent calls to
will create backups named 'myprogram.m.001', 'myprogram.m.002', etc.
would do the same, but would also open the specified program in the Matlab editor.
Works in both Unix and Windows.
Kevin Bartlett (2020). Extremely simple version control for Matlab code (https://www.mathworks.com/matlabcentral/fileexchange/34147-extremely-simple-version-control-for-matlab-code), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!