|
|
| File Information |
| Description |
Take a single string and separate out individual "elements" into a new cell array. Elements are defined as non-blank characters separated by spaces.
Similar to str2cell, except str2cell requires an array of strings. str2cells requires only 1 string.
Example: Consider the following string in the workspace:
aString = ' a b c d efgh ij klmnopqrs t u v w xyz '
>> newCell=str2cells(aString)'
newCell =
'a'
'b'
'c'
'd'
'efgh'
'ij'
'klmnopqrs'
't'
'u'
'v'
'w'
'xyz' |
| Acknowledgements |
This submission has inspired the following:
rsplit
|
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 18 Oct 2004 |
Fahad Al Mahmood
|
|
|
| 19 Oct 2004 |
urs Schwarz (us)
|
|
|
| Updates |
| 20 Oct 2010 |
Updated License Info. |
|
Contact us at files@mathworks.com