Probably a simple question but i currently use
sims = uigetdir ('C:\Matlab')
info = dir(fullfile(sims,'*.in'))
Which brings up the popup window where i selected my folder, in this case 'RRfiles' which then gives me the list of the files in there and away we go. I am trying to do this without having to select the folder manually.
I have tried sims = dir ('C:\Matlab\RRfiles') which does tell me how many files are in there but the answer should be 26 and it is actually 28 because of '.' and '..' so i need a way of filtering out these files just like before. but putting info = dir(fullfile(sims,'*.in')) afterwards doesnt work. Any advice would be appreicated.