MATLAB: I have a matlab code for feature extraction, how i apply this code to all the dataset in a file .without applying it one at atime.

feature extraction to all datasets

i have a Matlab code for feature extraction, how i apply this code to all my dataset in a file .without applying it one at a time. i need a code with a function that run through all the dataset at once.

Best Answer

F=dir('*.nc') % write extension
for i =1:length(F)
% write your commands. call the filename as F(i).name
F(i).name
end