%% Find Files Matching Specified Name
% List all files with a .m extension that contain the term my.
% Create a folder, myfolder, that contains the files myfile1.m,  myfile2.m, and myfile3.txt.

mkdir myfolder
movefile myfile1.m myfolder
movefile myfile2.m myfolder
movefile myfile3.txt myfolder

%
% List the matching files in myfolder.

cd myfolder
dir *my*.m

%
% Copyright 2012 The MathWorks, Inc.