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

7 views (last 30 days)
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 ?

Answers (1)

Kevin Phung
Kevin Phung on 1 Feb 2019
Edited: Kevin Phung on 1 Feb 2019
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!