I have a question on how to access specific sub-folders by name.
Lets say I have a working folder where there are sub-folders called:
I am using a GUI in which I use the following code to access the individual sub-folder of interest.
folder = uigetdir('C:\Users\...\working folder');
files = dir(fullfile(folder, '*.txt'));
After choosing the sub-folder manually with uigetdir, the procedure works well. I would like to do all simply by indicating where is the working folder with one push-button.
I am guessing that should be something like
folder_destination1 = folder,'power';
files1 = dir(fullfile(folder_destination1, '*.txt'));
folder_destination1 = folder,'power'; files2 = dir(fullfile(folder_destination2, '*.txt'));
How to update the folder name by updating with the sub-folder name?
Thanks in advance