clear; clc;

tmp = dir;
file_names = {tmp(:).name};

for i = 1 : length(file_names)
    
    curr_filename = file_names{i};
    period_idx = find(curr_filename == '.');
    if strcmp('m', curr_filename(period_idx + 1 : end))
        disp(curr_filename);
    end
    
end
