check status of csvread
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, is there any way to check a status of the csvread function ? I am using guide in matlab, I would like to check if there is an error after reading a file to make an error message.
Thank you.
0 Kommentare
Antworten (1)
Guillaume
am 3 Mai 2016
try
m = csvread('somefile.txt');
catch exception
fprintf('Failed to read csv file because %s', exception.message);
end
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!