Load files from two different folders
Mostra commenti meno recenti
Hi,
I need to upload files from two different folders. I wrote this but it woking just from one folder. How can I add the second folder?
dirname=['D:\Shared\MATLAB\100min\BT']
cd(dirname)
filelist = dir([basename '*_BTlength.mat'])
Thanks
Risposta accettata
Più risposte (1)
Jacob Ward
il 24 Feb 2023
0 voti
Use the addpath() function to add the path to your second folder to the working directory:
Categorie
Scopri di più su Search Path in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!