1

I have run the following Matlab code and I got a signal as shown in the Figure below.

[y, fs] = audioread(mp3file);
y1 = y(:,1);
y2 = y(:,2);
dt = 1/fs;
t1 = 0:dt:(length(y1)*dt)-dt;
t2 = 0:dt:(length(y2)*dt)-dt;
plot(t1,y1);  
hold on
plot(t2,y2);

enter image description here

Is this a signal generate from a raw mp3 file or it is generated from a Matlab-decoded-mp3 file (which means Matlab has internally decoded the mp3 file)?

1

Supported codecs and containers for the audioread function of matlab can be found at:

https://www.mathworks.com/help/matlab/ref/audioread.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.