Multiple-Colon

multiple colon-intervals

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Return a concatenation of multiple colon-intervals.

User provides left, step, and right bound.

>> mcolon([0 10],[1 2],[2 14])

ans = 0 1 2 10 12 14

Cite As

Bruno Luong (2026). Multiple-Colon (https://www.mathworks.com/matlabcentral/fileexchange/29854-multiple-colon), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.6.0.0

Fix installation bugs

1.5.0.0

Various improved performance
User can set tolerance once

1.4.0.0

Fix an overflow bug for colon with integer types

1.2.0.0

Minor correction from Oleg's comments

1.1.0.0

Add optional MEX engine

1.0.0.0