i want to create a error msage.
显示 更早的评论
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..
采纳的回答
更多回答(1 个)
Friedrich
2011-7-13
Hi,
maybe something like this?
msgbox('File not found','Error','Error')
4 个评论
partha das
2011-7-13
Chirag Gupta
2011-7-13
If you wanted to throw a MATLAB error use, error('File Not found')
Friedrich
2011-7-13
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
2011-7-13
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!