vector to string

Converts a vector to a string, using the colon operator to represent linearly spaced subvectors.

Download
Download

You are now following this Submission

Cite As

Sven Bossuyt (2026). vector to string (https://www.mathworks.com/matlabcentral/fileexchange/26453-vector-to-string), 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.2.0

generate error immediately if array is not numeric
changed logic of algorithm, to also handle NaN elements

Download
1.1.0

* fixed bug where end of one subsequence is start of next one
* added spaces between subsequences, to improve readability
* changed behaviour for subsequences of length 2

Download
1.0.0

Download