Taking sample from audioread

2 views (last 30 days)
How do I take 200 sample from an audioread

Accepted Answer

Ameer Hamza
Ameer Hamza on 26 Nov 2020
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);
  2 Comments
S.M. Miran-Ul-Hasan Sajoy
S.M. Miran-Ul-Hasan Sajoy on 26 Nov 2020
Thank you so much brother. It works
Ameer Hamza
Ameer Hamza on 26 Nov 2020
I am glad to be of help!

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!