Code covered by the BSD License  

Highlights from
Multiple-Colon

Multiple-Colon

by

 

30 Dec 2010 (Updated )

multiple colon-intervals

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

colon(varargin)
function A = colon(varargin)
% overload Matlab built-in colon with mcolon
% A = colon(varargin)
% MATLB compatible when using with scalar inputs
% Author: Bruno Luong <brunoluong@yahoo.com>

if isscalar(varargin{1})
    A = builtin('colon', varargin{:});
else
    A = mcolon(varargin{:});
end

Contact us