Split adjacent number from text file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have the number in text file as following;
123456789101112131415AB1 111
123456789101112131415AB2 111
..
.
.
I want MATLAB to separate adjacent number in every three consecutive sequence like below;
123 456 789 101112 131415
Anyway, I've looked at many possible solutions but I don't really have an idea which codes I have to use it to do like that. Are there anyone have an idea?
Thanks Phat
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 12월 18일
You can textscan using %3c format (repeated as often as appropriate), or you can regexp() the content with a pattern such as '...' -- but be careful about the blank delimiter.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import and Export에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!