I am attempting (poorly) to write an app in MATLAB app designer that can read in several folders containing a variable number of text files.
I stumbled upon uipickfiles and was wondering if anyone has any experience using it? Currently my app has a ButtonPushed callback that calls uipickfiles which then allows the user to choose the folders they wish to use. However, when I look at what is returned it is e.g. - if only one folder is selected - a 1x1 cell containing the path to the folder.
I am wondering if it is possible to manipulate this to create a callback that also reads the contents of all the textfiles in the folder and stores it as a mxn table or matrix?
I've tried using different variations of readtable or readmatrix on a folder with even one file in it to no avail. I keep getting an error - "filename" must be a string scalar or character vector. But I don't know how to make the app do what I want.
Any help at all would be greatly appreciated