up sampling a wave file in MATLAB
2 ビュー (過去 30 日間)
古いコメントを表示
hiii,
i want to up sample a wave file in matlab...but couldnt get it right can anyone help???
0 件のコメント
回答 (1 件)
Wayne King
2012 年 5 月 31 日
I assume by upsampling you mean inserting zeros to increase the sampling rate and applying the interpolation filter.
Have you tried resample.m in the Signal Processing Toolbox?
% Original sampling rate is 1000 Hz
t = 0:0.001:1-0.001;
x = cos(2*pi*100*t);
% resample at twice the original rate
y = resample(x,4,2);
If this does not help you, it would be helpful for you to post some code to show where you are having trouble.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Multirate Signal Processing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!