display image in subfolder of current folder
14 views (last 30 days)
I to display an image which is in one of the sub-folders of the current directory. I know the name of the file. how will i know which sub-folder it is in and how will i display in it???
thanking you in advance.
Image Analyst on 24 Aug 2015
Preethi, try this:
% Specify the top level folder.
topLevelFolder = 'C:\Users\Mark\Pictures';
% Add this folder and all of its subfolders to the search path.
% Define the base file name of the file you are looking for.
baseFileName = 'anagrams.png';
% Display it. It will find it on the search path if it's there.
More Answers (1)
Azzi Abdelmalek on 23 Aug 2015
filename='photo.jpg'; % your image