필터 지우기
필터 지우기

String parsing

조회 수: 2 (최근 30일)
skyimager
skyimager 2012년 6월 2일
My text is of the form a='1233.44,56,78,Earth'. Now i want b=1233.44,56,78 and c=Earth. how can i do that?

채택된 답변

Walter Roberson
Walter Roberson 2012년 6월 2일
lastc = find(a == ',', 1, 'last');
b = a(1:lastc-1);
c = a(lastc+1:end);

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by