MATLAB: Show part of filenames using uigetfile

show part of filenames using uigetfile

Hi:
ther are lots of files with the same suffix, such as '.mat' in a folder, I have named them based on their features, for example:
test001.mat, test002.mat, …. test050.mat
experiment001.mat, experiment002.mat ….. experiment050.mat
simulation001.mat, simulation002.mat ….. simulation050.mat
yes I can use uigetfile('*.mat') to select the desired one, but is there anyway to only show part of them, for example, I enter a string 'test' as input, them only shows the testxxx.mat?
Bests,
Yu

Best Answer

Is that that you need?
filename = uigetfile('test*.mat')