Code covered by the BSD License  

Highlights from
Extremely simple version control for Matlab code

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 3.38 KB File ID: #34147

Extremely simple version control for Matlab code

by Kevin Bartlett

 

09 Dec 2011

Creates sequentially-numbered backups of existing m-file for safety while editing.

| Watch this File

File Information
Description

vcp creates backups of existing m-files for easy backtracking when editing code.

The command
  vcp myprogram
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
  vcp myprogram
will create backups named 'myprogram.m.001', 'myprogram.m.002', etc.

The command
   vedit myprogram
would do the same, but would also open the specified program in the Matlab editor.

Works in both Unix and Windows.

MATLAB release MATLAB 6.1 (R12.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
source control Kevin Bartlett 12 Dec 2011 11:25:11
development Kevin Bartlett 12 Dec 2011 11:25:11
development environment Kevin Bartlett 12 Dec 2011 11:25:11
version control Kevin Bartlett 12 Dec 2011 11:25:11
revision control Kevin Bartlett 12 Dec 2011 11:25:11

Contact us at files@mathworks.com