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

 採用された回答

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 件のコメント

Also, we recommend
[filename,pathname] = uigetfile();
if isnumeric(filename); return; end %user cancel
fullfilename = fullfile(pathname,filename);
Voss
Voss 2022 年 11 月 29 日
@Walter Roberson: Good point.

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Images についてさらに検索

タグ

質問済み:

2022 年 11 月 29 日

コメント済み:

2022 年 11 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by