How can i convert multiples lines into 1 text string (big block)
조회 수: 4 (최근 30일)
이전 댓글 표시
so my file is like:
abcdef
abcdef
abcdef
abcdef
and i would like them to be in 1 text string without enters: 'abcdefabcdefabcdefabcdef'
댓글 수: 0
답변 (2개)
J. Webster
2016년 4월 22일
file = textread('text.txt', '%s', 'whitespace','');
file will be a cell array containing the string you want.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!