why when i import an image from my desktop the error says it doesnt exist plz help and thank u in advance

1 回表示 (過去 30 日間)

採用された回答

Voss
Voss 2022 年 11 月 29 日
編集済み: Voss 2022 年 11 月 29 日
Use both output arguments from uigetfile to construct the full path name of the file:
[filename,pathname] = uigetfile();
fullfilename = fullfile(pathname,filename);
a = imread(fullfilename);
  2 件のコメント
Walter Roberson
Walter Roberson 2022 年 11 月 29 日
Also, we recommend
[filename,pathname] = uigetfile();
if isnumeric(filename); return; end %user cancel
fullfilename = fullfile(pathname,filename);

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by