How to get file names only when using dir()?
315 views (last 30 days)
Hello I am trying to get only the file names after using the dir() function without using a for loop. For the moment I am doing the following:
folder = uigetdir();
fileList = dir(fullfile(folder, '*.mat'));
Is there a possible way to do what I want in order to be able to sort them and manipulate them easily?