root/gliderproc/trunk/MATLAB/matutil/vcolon.m
Revision 495 (checked in by cbc, 12 years ago) |
---|
Line | |
---|---|
1 | |
2 | function out = vcolon(in); |
3 | |
4 | if(prod(size(in))~=2) |
5 | error('Input must be 2x1 or 1x2 vector'); |
6 | else |
7 | out=in(1):in(2); |
8 | end |
Note: See TracBrowser for help on using the browser.