Call a folder from desktop and use images inside it
Show older comments
I want to make a programme where i can call a file from desktop and them use images stored in it in the same programme.
Accepted Answer
More Answers (1)
yanqi liu
on 30 Nov 2021
% read
[filename, pathname, ~] = uigetfile( ...
{ '*.bmp;*.jpg;*.tif;*.png;*.gif','All Image Files';...
'*.*', 'all files (*.*)'}, ...
'choose file', ...
'MultiSelect', 'off', ...
'C:\Users\Administrator\Desktop\');
filePath = 0;
if isequal(filename, 0) || isequal(pathname, 0)
return;
end
filePath = fullfile(pathname, filename)
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!