Sound in Matlab Problem
古いコメントを表示
Make a new vector y3 consisting of the values of y corresponding to the first three seconds of sound. Play this sound (perhaps you recognise it?) using the command sound().
Can someone please give me hints to solve this question?
Thank you.
5 件のコメント
Geoff Hayes
2020 年 8 月 20 日
What is y? Have you been given some audio data with a sampling frequency that you need to extract the first three seocnds from?
Walter Roberson
2020 年 8 月 20 日
Hint: if your sample frequency is 8000 then one second is 8000 rows, two seconds is 16000 rows..
Le Tien Dung Doan
2020 年 8 月 20 日
Geoff Hayes
2020 年 8 月 20 日
y is the array of audio samples so you will want to extract the data from this array.
y3 = y(1:3*8192,:);
In your code, you are overwriting the y with a scalar.
Le Tien Dung Doan
2020 年 8 月 21 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Audio I/O and Waveform Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!