Need help with understanding this

10 Ansichten (letzte 30 Tage)
Matthew Covington
Matthew Covington am 3 Mär. 2019
Beantwortet: Image Analyst am 3 Mär. 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 Kommentar
Star Strider
Star Strider am 3 Mär. 2019
Reading the documentation on the exist() function should help you understand.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 3 Mär. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by