Vector to colon notation

Converts a vector into a string with its MATLAB colon notation (single resolution).

Download
Download

You are now following this Submission

Cite As

Javier Lopez-Calderon (2026). Vector to colon notation (https://in.mathworks.com/matlabcentral/fileexchange/22076-vector-to-colon-notation), 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

fixed bug where the increment is negative
Checks numeric input
Allows to keep repeated values
mat2colon function was implemented (see submission)

Download
1.3.0

Include options: 'DelimiterEnable' & 'Sort'

Download
1.2.0

P1:Bug, two elements appeared without square brackets ([]).
R1:Fixed JLC, 11/29/2008

Download
1.1.0

Description was fixed.

Download
1.0.0

Download