- you do not get two vectors of data. You get an N x 2 array. The left channel is in the first column and the right channel is in the second column.
- plot(abs(fft(A(:,1)))) . Notice this will give you the frequency information over the entire time. You might be more interested in frequency information over shorter periods of time. For that look at spectrogram
- It depends on your purpose. You can use fft(A) if you want. The result will be the two separate ffts combined into one array, as if you had done [fft(A(:,1)), fft(A(:,2))]
- something pretty useless
Help interpreting Audio-Signal from 'audioread( .wav)' output?
11 views (last 30 days)
Show older comments
Marie Harpøth
on 12 Aug 2015
Commented: Shivam Dubey
on 28 Nov 2020
Hey
I am a beginner at MatLab and working with Audio-Signals. So I have a few basic questions:
Using the audioread('.wav') to sample a wav-file, I become to outputs, [data,fs]. data=A Matrix with two vectors of samples of the wav-file, and fs=the sampling-rate.
- Why do I get two vectors of data?
- How do I best proceed to get a plot of the frequency-domain?
- Should I only use the fft() on one of the vectors?
- What do I get if I make a convolution of the two vectors of the data?
0 Comments
Accepted Answer
Walter Roberson
on 13 Aug 2015
4 Comments
Mukhammadsher Shermamatov
on 1 May 2018
Edited: Mukhammadsher Shermamatov
on 1 May 2018
Thank you for your answer it was helpful for me. I've implemented FFT myself, now i am using [myfft(A(:,1)), myfft(A(:,2))] and it is giving the same graph with matlab's fft function. The problem now i have, is that using ifft it does not give back my original input signal. Can you help me to understand it?
Shivam Dubey
on 28 Nov 2020
Why do you mean by N x 2 arrays? Each column represents the sound level right? How are they different?
More Answers (0)
See Also
Categories
Find more on Spectral Measurements 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!