File Exchange

image thumbnail

str2strs.m

version 1.0 (1.1 KB) by

Takes a deliminated string s and breaks it up into sub-strings stored in a cell-array of strings.

1 Download

Updated

No License

This function takes a deliminated string s and breaks it up into sub-strings stored in a cell-array of strings. Spaces in the string are converted to underscore characters. It is currently set-up for tab delimination though may be modified for another character. Any length string, of any number of elements, of any length elements are ok as input. The char function can then be used to recover the individual elements of the cell-array output.

Tested with the Student version of Matlab 5.

Comments and Ratings (1)

V L

MATLAB Release
MATLAB 5.2 (R10)
Acknowledgements

Inspired: rsplit

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video