The System.IO.Path.GetFullPath
give to you the current path from matlab, so Files(k).name
can be concatenated in the wrong place.
One way to do:
local='C:\Users\Eder\Downloads\';
filetype='*.wav';
pathsearch = [local filetype];
Files=dir(pathsearch);
for k=1:length(Files)
FileNames = [local Files(k).name]
y = abs(fft(wavread(FileNames)))
end