Clear Filters
Clear Filters

Importdata imports nothing at all

1 view (last 30 days)
Ira on 25 Jan 2017
Edited: Chirag Parekh on 27 Jan 2017
Hi all,
(Matlab 2016b v-
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.
-- Ira
Adam on 25 Jan 2017
Without knowing what is in your text file it is impossible to say really.
the cyclist
the cyclist on 25 Jan 2017
Can you upload a small example of a text file that exhibits this behavior, so that we can try to replicate it?

Sign in to comment.

Answers (1)

Chirag Parekh
Chirag Parekh on 27 Jan 2017
Edited: Chirag Parekh on 27 Jan 2017
Make sure that the file is in ASCII format. Try the example at
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.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!