How can we scale and delay a signal using convolution in Matlab? Plz help
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
waqas ansari
am 6 Sep. 2012
Kommentiert: Image Analyst
am 13 Apr. 2021
How can we scale and delay a signal using convolution in Matlab? Plz help
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 6 Sep. 2012
Bearbeitet: Image Analyst
am 13 Apr. 2021
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 Kommentare
Image Analyst
am 13 Apr. 2021
It's the kernel (filter window weights) that will shift the signal by one element.
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Digital Filtering finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!