How to get the FFT of the audio sample from videoFileReader object

5 views (last 30 days)
I am a beginner in Matlab and I wanted to get the power spectrum values from the audio sample of a given frame in a video. I tried doing this.
[I,AUDIO] = step(videoFReader)
y = fft(AUDIO)
but it is giving me an error undefined function 'fft' for input agruments of type 'int16'

Answers (1)

Honglei Chen
Honglei Chen on 5 Jun 2013
you can do
y = fft(double(AUDIO))

Categories

Find more on Fourier Analysis and Filtering 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!