Answer:
To open Folder and dynmically read files
path='C:\SpeechData\Nada1';
folder = path;
dirListing = dir(folder);
for o = 1:20 % num of fields
for d = 3:length(dirListing)
% loop through the files and open. Note that dir also lists the directories, so you have to check for them.
fileName = fullfile(folder,dirListing(d).name); % use full path because the folder may not be the active path
[speechIn6,FS6]=wavread(fileName);
speechIn6 = myVAD(speechIn6);
fMatrix6(1,o) = {mfccf(ncoeff,speechIn6,FS6)};
Nada Gamal