downsampling a music in matlab

1 回表示 (過去 30 日間)
Bahareh
Bahareh 2011 年 10 月 19 日
Hello all,
I have a .wav type music and would like to undersample it at 4kHz to view the aliasing effect. Can somebody help me please?
Thanks in advance.

採用された回答

Daniel Shub
Daniel Shub 2011 年 10 月 19 日
doc downsample
Assuming your music is starting with a sample rate of 44.1 kHz and you are happy with a sampling rate of ~4009.09 Hz (44.1e3/11) then:
y = downsample(x, 11);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by