The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'
조회 수: 2 (최근 30일)
이전 댓글 표시
The description of interp said, 'interp inserts zeros into the original signal and then applies a lowpass interpolating filter to the expanded sequence'. However, when i used interp to insert data into my oringal data, showing that data inserted isn't zero. Thanks!!!!!
before
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126965/image.png)
after F1 = interp(F1,2)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126970/image.png)
댓글 수: 1
답변 (1개)
Jonas
2022년 9월 16일
the description says it inserts zeros AND applies the filter for interpolation. of course the filter changes the zero values.
if you want to just insert additional zeros, use the upsample function or simple dot notation like
sigUp(1:2:end)=oldSig
댓글 수: 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!