MATLAB: Loading all files from a user specified folder into a gui appgui Hi, Is there a way for a GUI to allow a user to select a folder of text files on their own computer and have the GUI work on all the txt files within that folder? Best regards Steve Best Answer x = uigetfile({'*.txt'});fid = fopen(x); Related SolutionsMATLAB: Acces directories of specific name You can get the path of the working folder by using fileparts:[workpath,subfolder] = fileparts(folder)Once you have the working path then you generate the subfolder path easily:fullfile(workpath,'power','*.txt')fullfile(workpath,'thickness','*.txt') MATLAB: How to save the textfiles in another paste Without actually having delved through your code, you could try the modification below.movefile(TXT_filefolders{ii}, 'C:\Users\Dani\Documents\PORTUGAL\Pasta_Erros','f') Related QuestionHow to use uigetfile to open subfolder’s file.Dir(cd)How to program a pushback button on a GUI to open a folder
Best Answer