MATLAB: App Designer: Use Tree to Browse Directory appdesignerMATLABtree Can a tree be used to browse a directory? Need to select multiple files and move them from one path to the next. Best Answer see the help of uigetfile:"Enabling multiple file selection in the dialog: [filename, pathname, filterindex] = uigetfile( ... {'*.mat','MAT-files (*.mat)'; ... '*.mdl','Models (*.mdl)'; ... '*.*', 'All Files (*.*)'}, ... 'Pick a file', ... 'MultiSelect', 'on');" Related SolutionsMATLAB: What command prompts for file name then creates/opends file Look at uigetfile[filename, pathname, filterindex] = uigetfile( ... {'*.mat','MAT-files (*.mat)'; ... '*.mdl','Models (*.mdl)'; ... '*.*', 'All Files (*.*)'}, ... 'Pick a file', ... 'MultiSelect', 'on');and uiputfile.If you don't want an UI option, you can also use input() with the 's' option to input a string and then use fread(), fwrite(), etc. to read and write the file. MATLAB: Get path to all files in a folder of images % Directorydirectory = 'C:\Datasets\nyu\train\';img_dir = fullfile(directory, 'image_02');depth_dir = fullfile(directory, 'depth');image_rgb_info = dir( fullfile(img_dir, '*.jpg'));image_rgb_filenames = fullfile(img_dir, {image_rgb_info.name} );image_depth_info = dir( fullfile(depth_dir, '*.png'));image_depth_filenames = fullfile(depth_dir, {image_depth_info.name} ); Related QuestionPrinting pathname to GUI textboxFullfile to contain multiply file extensionApp designer: Unbalanced or unexpected parenthesis or bracketApp Designer: Subplots in uiplane
Best Answer