Importdata imports nothing at all
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
(Matlab 2016b v- 9.1.0.441655)
I have a code which was working just fine in the past. For some odd reason it stopped working. This is the culprit part of the code
filename = '/home/spawn/Dropbox/PEGASUS/OnlineGraph/cleanResults.txt';
delimiterIn = ';';
A = importdata(filename,delimiterIn);
This results in importing an empty array ([ ]).
Trying to open a non-existent file yields an
Unable to open file.
Error, which isn't the case here.
Thanks!
-- Ira
2 个评论
the cyclist
2017-1-25
Can you upload a small example of a text file that exhibits this behavior, so that we can try to replicate it?
回答(1 个)
Chirag Parekh
2017-1-27
编辑:Chirag Parekh
2017-1-27
Make sure that the file is in ASCII format. Try the example at https://www.mathworks.com/help/releases/R2016b/matlab/ref/importdata.html#btldf1f-1
If the example works, the problem might be with the file. If you are not able to figure out the issue, please upload the file so that others can help.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!