필터 지우기
필터 지우기

convert string to cell

조회 수: 2 (최근 30일)
shaz
shaz 2012년 11월 15일
i have a cell like
a = {'a;b;c;d;e;f;g;h'} % size is 1*1
how to place elements in to individual cell of a
output size = 1*8
  댓글 수: 2
Jan
Jan 2012년 11월 15일
The question is not unique: Do you want to get {'a', 'b', 'c'} or {'a;', 'b;', 'c;'}?
Jan
Jan 2012년 11월 27일
It would be friendly to answer questions for clarifications. Otherwise it seems, like you are not interested in your own answers. This will reduce the motivation of others to answer your questions.

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 15일
편집: Azzi Abdelmalek 2012년 11월 15일
b=regexp(a,';','split')
b{:}

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by