Need help with understanding this
4 views (last 30 days)
Show older comments
Matthew Covington
on 3 Mar 2019
Answered: Image Analyst
on 3 Mar 2019
Revise your assign05.m by adding the exist() function to print a message only if the data file is not available. The output should be the same as with assign05.m.
This is a question for an assignment I have, how would I do this? I don't really understand what she wants us to do
1 Comment
Star Strider
on 3 Mar 2019
Reading the documentation on the exist() function should help you understand.
Accepted Answer
Image Analyst
on 3 Mar 2019
Hint:
if ~exist(filename............ % Use the 'file' option
% Alert user that the file is not found.
message = sprintf(............
uiwait(errordlg(...............
return;
end
That should be plenty for you to complete the assignment.
0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!