Load files from two different folders
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
Jacob Ward
el 24 de Feb. de 2023
0 votos
Use the addpath() function to add the path to your second folder to the working directory:
Categorías
Más información sobre Search Path en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!