Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Reading poorly formatted txt file
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I've trouble importing data from a big txt file. Here is the content of the file : http://pastebin.com/LQKGP0am
So it is 18 columns of numerical data, separated by spaces (actually all entries are in one row each, but on pastebin the last two columns go to the next line.)
Since there is no clear separator (like comma or anything), I have trouble importing it in its entirety in a big matrix without losing parts and so on. Any help would be greatly welcomed.
Thanks in advance.
댓글 수: 1
per isakson
2012년 12월 10일
편집: per isakson
2012년 12월 10일
The format looks ok to me. Multiple space as list delimiter shouldn't cause problems. If you have a few files use Import data interactively. If you have many use textscan. Read the documentation carefully.
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!