MATLAB: How to select multiple files with similar extension

select

Hello Guys, I have a folder that has a lot of files, how can i ask MATLAB to select just the files with the extension(07) to be run in MATLAB?

Best Answer

try looking at the following function dir
path =pwd;
extension = '.07'
rtnFiles=dir(fullfile(path,['*' extension]))