String to Cells

버전 1.1.0.1 (1.43 KB) 작성자: Cole Stephens
Split a single string into a cell array.
다운로드 수: 2.5K
업데이트 날짜: 2016/9/1

라이선스 보기

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'

인용 양식

Cole Stephens (2026). String to Cells (https://kr.mathworks.com/matlabcentral/fileexchange/6054-string-to-cells), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Characters and Strings에 대해 자세히 알아보기
도움

도움 준 파일: rsplit

버전 게시됨 릴리스 정보
1.1.0.1

Updated license

1.1.0.0

Updated License Info.

1.0.0.0