I am working on creating a GUI in Matlab using GUIDE. However, I'm not quite sure how to do this, and was looking for some tips / advice.
Problem
I want to open a directory and display all the images in this directory in the GUI, if one is selected. However, since I will never know exactly how many images are, Iām not quite sure how to do this in the GUI.
Essentially, I want to open the directory and all the images that will be displayed on the grid in a graphical interface similar to the text in iphoto .
Current code
Currently, I can open the directory in order and get all the necessary information as follows:
directory = uigetdir(pwd, 'Directory Selector'); files = dir(fullfile(directory, '*.jpg')); strcat(strcat(directory, '/') , files.name) %outputs each file location
I'm just not sure how to translate this information into a graphical interface without writing numerous .axes1 descriptors. I understand that since I know this information, I could iterate over them, but would not need to create axes to begin with?
source share