Need help with understanding this

3 ビュー (過去 30 日間)
Matthew Covington
Matthew Covington 2019 年 3 月 3 日
回答済み: Image Analyst 2019 年 3 月 3 日
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 件のコメント
Star Strider
Star Strider 2019 年 3 月 3 日
Reading the documentation on the exist() function should help you understand.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2019 年 3 月 3 日
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 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by