can anyone tell me what y really means here? [y,Fs] = audioread(filename)

7 次查看(过去 30 天)
Hello, can anyone tell me what y really means here? [y,Fs] = audioread(filename) I know that y is audio samples represented as a matrix, but what does it really mean? any idea...
The same question// How can I get the frequency and the amplitude of each audio sample in y ?

回答(1 个)

Kevin Phung
Kevin Phung 2019-2-1
编辑:Kevin Phung 2019-2-1
Towards the bottom:
'Audio data in the file, returned as an m-by-n matrix, where m is the number of audio samples read and n is the number of audio channels in the file.
  • If you do not specify dataType, or dataType is 'double', then y is of type double, and matrix elements are normalized values between −1.0 and 1.0.
  • If dataType is 'native', then y can be one of several MATLAB® data types, depending on the file format and the BitsPerSample value of the input file. Call audioinfo to determine theBitsPerSample value of the file.'
Hope this helps

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by