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

2 vues (au cours des 30 derniers jours)

Réponse acceptée

Voss
Voss le 29 Nov 2022
Modifié(e) : Voss le 29 Nov 2022
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 commentaires
Walter Roberson
Walter Roberson le 29 Nov 2022
Also, we recommend
[filename,pathname] = uigetfile();
if isnumeric(filename); return; end %user cancel
fullfilename = fullfile(pathname,filename);

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by