MATLAB: Importing an image into a variable from database

databasedatabase image import into a variable

how to browse and import an image into a variable.?

Best Answer

[filename, pathname] = ...
uigetfile({'*.jpg';'*.png';'*.tif';'*.bmp'},'File Selector'); % Include your extension
I = imread([pathname,filesep,filename]) ; % REad the file
imshow(I) ; % display the file