Load files from two different folders
이전 댓글 표시
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
채택된 답변
추가 답변 (1개)
Jacob Ward
2023년 2월 24일
0 개 추천
Use the addpath() function to add the path to your second folder to the working directory:
카테고리
도움말 센터 및 File Exchange에서 Search Path에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!