clear; clc;

target_ext = 'pdf';
file_list = dir;
file_list = {file_list(3 : end).name};

for i = 1 : length(file_list)
    
    curr_file = file_list{i};
    
%     dot_idx = find(curr_file == '.');
%     if strcmp(target_ext, curr_file(dot_idx + 1 : end))
%         disp(curr_file);
%     end
    
    if endsWith(curr_file, '.m')
        disp(curr_file);
    end
   
end