Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
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'
Cita come
Cole Stephens (2026). String to Cells (https://it.mathworks.com/matlabcentral/fileexchange/6054-string-to-cells), MATLAB Central File Exchange. Recuperato .
Riconoscimenti
Ispirato: rsplit
Informazioni generali
- Versione 1.1.0.1 (1,43 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
