MATLAB: Taking sample from audioread

william

How do I take 200 sample from an audioread

Best Answer

audioread() needs to read complete audio file. You can get 200 samples after the file is loaded
[y, fs] = audioread(filename);
y200 = y(1:200);