This is my code
function1( 'myfile.20140826')
plot( 'myfile.20140826.shd.mat', 1, 1, 1 )
saveas(gcf(), 'myfile.20140826.20140826.pdf')
function1( 'myfile2.20140826' )
plot( 'myfile2.20140826.shd.mat', 1, 1, 1 )
saveas(gcf(), 'myfile2.20140826.pdf')
I have several files that I would like it to run and plot automatic. This file have almost the same name, but the date in the name changes (myfile.20140826, myfile.20160827
ect.)Any ideas? Maybe make a for loop or something?