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
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
2022 年 11 月 29 日
Also, we recommend
[filename,pathname] = uigetfile();
if isnumeric(filename); return; end %user cancel
fullfilename = fullfile(pathname,filename);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!