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!