i want to create a error msage.
Mostra commenti meno recenti
I want to run a program where a excel file will be taken as input and i want that if the excel file is not find there should be an error msg. how can i create that type of error msg box. please help me. thank you in advance..
Risposta accettata
Più risposte (1)
Friedrich
il 13 Lug 2011
Hi,
maybe something like this?
msgbox('File not found','Error','Error')
4 Commenti
partha das
il 13 Lug 2011
Chirag Gupta
il 13 Lug 2011
If you wanted to throw a MATLAB error use, error('File Not found')
Friedrich
il 13 Lug 2011
if exist('C:\path_to file_\name.xls','file') ~=2
msgbox('File not found','Error','Error')
else
%do what you like with the file here
partha das
il 13 Lug 2011
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!