Performing Fourier transform on .wav file
1 view (last 30 days)
Show older comments
Susanna McGrew
on 8 Feb 2016
Answered: Walter Roberson
on 8 Feb 2016
What I want to do is perform a fourier transform on a song in *.wav form. I am able to bring the file into my workspace using
[file, pathname] = uigetfile('*.wav')
and selecting the file I want. However, I cannot get farther than this: when I try to get information about the file through
audioinfo(file) or audio read(file)
I get the error message, "The filename specified was not found in the MATLAB path."
What does this mean, and how can I perform the fft on this particular file?
Thank you!!
0 Comments
Accepted Answer
Walter Roberson
on 8 Feb 2016
filename = fullfile(pathname, file);
[data, Fs] = wavread(filename);
freqdata = fft(data);
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!