Error using load? Unable to read file
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hesham Ismail
il 14 Lug 2015
Commentato: Hesham Ismail
il 14 Lug 2015
Hello,
I have a question about load file. for example load laserdata and laserdata file is not there is there a way to return 0? for no file exist rather than error? I tried exist function in matlab but no luck?
Any help will be great
0 Commenti
Risposta accettata
Ingrid
il 14 Lug 2015
you could use a try - catch block
try
load laserdata
catch
% write whatever code you want to be executed if the laserdata cannot be loaded
end
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!