Effacer les filtres
Effacer les filtres

Basic question of convolution

3 vues (au cours des 30 derniers jours)
JjjO
JjjO le 17 Avr 2021
Commenté : JjjO le 17 Avr 2021
Hi. I solved a problem using conv .
'y[n] = x[n] * h[n] when x[n] = h[n] = [1,3,2,4]'.
Like this:
x=[1,3,2,4];
h=[1,3,2,4];
y=conv(x, h)
stem(y,'r','LineWidth', 2);
But, when the equation is y[n] = x[n-1] * h[n+1], how can I make n-1 and n+1??

Réponse acceptée

Matt J
Matt J le 17 Avr 2021
Modifié(e) : Matt J le 17 Avr 2021
But, when the equation is y[n] = x[n-1] * h[n+1], how can I make n-1 and n+1??
There is no need to in this case. because of the shift-invariance of convolution, the negative shift in x will be cancelled out by the positive shift in h.
  3 commentaires
Matt J
Matt J le 17 Avr 2021
That is what I mean.
JjjO
JjjO le 17 Avr 2021
Thank you :)

Connectez-vous pour commenter.

Plus de réponses (1)

AB WAHEED LONE
AB WAHEED LONE le 17 Avr 2021
Modifié(e) : AB WAHEED LONE le 17 Avr 2021
Look Convolution for discrete case is defined as y[n]=Σ(x[k]*h[n-k])
so y[n-1]=Σ(x[k]*h[n-1-k]) and y[n+1]=Σ(x[k]*h[n+1-k])

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by