Great friends, I need help. I made a .mat file strut format that lists all my HDF files. These files are a set of data per year. I want to count how many files have to each year. How to make? For example: file = dir ('AIRS *'); length (file ('AIRS.2003 *)) length (file ('AIRS.2004 *)) length (file ('AIRS.2005 *))
Thanks for your help.

 채택된 답변

Walter Roberson
Walter Roberson 2016년 3월 31일

0 개 추천

file = dir ('AIRS *');
filenames = {file.name};
num2004 = sum( ~cellfun(@isempty, strfind(filenames, '2004')) )

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

질문:

2016년 3월 31일

답변:

2016년 3월 31일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by