Why "File not found"?
Mostra commenti meno recenti
I am trying to follow the example of csvread here
filename = 'csvlist.dat';
M = csvread(filename)
I have csvlist.dat file save in my matlab directory.
>> M = csvread('csvlist.dat')
Error using csvread (line 35)
File not found.
I need to import my data, but which to select?

Thank you
4 Commenti
Walter Roberson
il 13 Feb 2019
What shows up for
ls *.dat
Matlaber
il 13 Feb 2019
Walter Roberson
il 13 Feb 2019
I wonder if there is a hidden character? Try
dinfo = dir('*.dat');
filename = {dinfo.name};
fprintf('found file named "%s"\n', filename);
fprintf('The representation of that is: \n');
disp(0 + filename);
and show us the output.
If the output is something different than
99 115 118 108 105 115 116 46 100 97 116
then you might have unusual characters in the name.
Matlaber
il 14 Feb 2019
Risposte (0)
Categorie
Scopri di più su Instrument Control Toolbox Supported Hardware in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!