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!