4 views (last 30 days)
To tell my function to perform it's operations on files in a directory Function('directory') is the command for that. how do I tell this function to perform it's operations on only the first n files in that directory and not all of the files.
Grzegorz Knor on 14 Nov 2011
Something like that:
a = dir(directory);
% a(1) is folder '.'
% a(2) is folder '..'
% so you have to start from a(3)
% do more operation on folder/file