필터 지우기
필터 지우기

How do you use strsplit

조회 수: 1 (최근 30일)
Amanda
Amanda 2022년 11월 2일
답변: Image Analyst 2022년 11월 2일
I need to use strsplit to transform txt data into a cell array but i dont know how to do this
  댓글 수: 2
Matt J
Matt J 2022년 11월 2일
What about the examples in the strsplit documentation?
KSSV
KSSV 2022년 11월 2일
Show us your text.

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2022년 11월 2일
For example
s = 'I need to use strsplit to transform txt data into a cell array but i dont know how to do this';
words = strsplit(s, ' ')
words = 1×21 cell array
{'I'} {'need'} {'to'} {'use'} {'strsplit'} {'to'} {'transform'} {'txt'} {'data'} {'into'} {'a'} {'cell'} {'array'} {'but'} {'i'} {'dont'} {'know'} {'how'} {'to'} {'do'} {'this'}

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by