clear; clc;

file_list = dir;
for i = 1 : length(file_list)
    file_name = file_list(i).name;
    pos = find(file_name == '.');
    if strcmp(file_name(pos + 1 : end), 'm')
        disp(file_name);
    end
end