Get all files under a folder
23 次查看(过去 30 天)
显示 更早的评论
Hello guys,
Im trying to get access to all files under folder that i have with matlab app designer. ( only files, excel files , .m , .mlapp .. etc , with out folders)
I saw in some other answers that i can use :
folderPath=uigetdir(pwd,'Select a folder');
files=dir(fullfile(folderPath,'*.mlap'));
and then i have struct files that i can get access to the file.name and file.name , files.folder ...etc
But it finds only the mlapp files , if I do like this
folderPath=uigetdir(pwd,'Select a folder');
files=dir(fullfile(folderPath, '*' );
it finds also the folders but that's not what i want
Need help to add only excel and another files :)
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!