You can use the readdir
function to get a list of all files in a folder, and then filter the list based on their file extension. Here's an example function that does this:
main.m708 chars21 lines
You can call this function with the path to your folder and the file extension you want to load, like this:
main.m101 chars4 lines
This will return a cell array of the file names with the '.csv'
extension in the given folder.
gistlibby LogSnag