cellmatrix2str & str2cellmatrix

Parses sentances into cells of individual words, and the reverse

You are now following this Submission

cellmatrix2str({'test ' 'me'})
Yields 'test me' as a character string.
It combines all the cells into 1 string

str2cellmatrix('This is a test')
yields a 1x4 cell matrix with each word in a seperate cell. This parses a string into individual cell blocks.

Cite As

Aman Siddiqi (2026). cellmatrix2str & str2cellmatrix (https://se.mathworks.com/matlabcentral/fileexchange/14952-cellmatrix2str-str2cellmatrix), 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.0.0.0