textread behaves differently when file resaved
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a not standard format (MRI scanner) file for which I use textread function to read the header. When I use the following command directly on the file, I do not get the full content of the file:
textread('foo','%s', 'delimiter','\n','bufsize', 500000);
However, if I open the file in matlab text editor, make some change, save the file, undo the change and re save it, I get different output (which is correct).
I am assuming there is some problem with the format it was saved originally.
Can anyone help me understand this problem ?
Thanks, Akshay
0 个评论
采纳的回答
更多回答(3 个)
Jan
2015-3-6
It is impossible to guess the differences between the two files. But you can find them. Save the modified file under a new name and use the tool of the editor to compare files. Or e.g. WinDiff or a similar tool.
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!