matlab 判断是否存在以某后缀名命名的文件

aa = dir('some_dir/*.mat');
if (isempty(aa)) 那么不存在.mat文件。

原文地址:https://www.cnblogs.com/yibeimingyue/p/13279647.html