MATLAB: How to show the contents of a folder in app designer and plot the files in it

app designermatlab functionplotplotting

Hi All
my code generates some excel files as output in a certain folder. which are a 2 column data. I was wondering if there is any way to show the content of this folder in a box as a list that dynamically updates as the code proceeds, or even just using a button that can update this box. then by hovering over each file name and selecting it from the box, I could plot it in a UIfigure plot in the app window. is this possible ?

Best Answer

See the attached app. It will list all the .xlsx file in the current folder and if it only has two columns, then plot it on the axes.