How can we scale and delay a signal using convolution in Matlab? Plz help
조회 수: 12 (최근 30일)
이전 댓글 표시
How can we scale and delay a signal using convolution in Matlab? Plz help
댓글 수: 0
채택된 답변
Image Analyst
2012년 9월 6일
편집: Image Analyst
2021년 4월 13일
How about this for scaling:
signal = randi(9, 1,10)
amplificationFactor = 10;
scaledSignal = conv(signal, amplificationFactor)
and this for delay:
delayKernel = [ 0 0 1]; % 1 must not be the center element.
delayedSignal = conv(signal, delayKernel, 'same')
because this might be homework, I'm going to let you combine them.
댓글 수: 3
Image Analyst
2021년 4월 13일
It's the kernel (filter window weights) that will shift the signal by one element.
추가 답변 (2개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!