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

1 view (last 30 days)

Accepted Answer

Voss
Voss on 29 Nov 2022
Edited: Voss on 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);

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!