How to make convolution between two signals?
Afficher commentaires plus anciens
If I have x[n] = δ[n] + 2 δ[n-1]- 3 δ[n-4] and h[n] = 3 δ[n]+2 δ[n-1]. Plot x[n], h[n], and then plot the convolution x[n]*h[n].
Réponses (3)
Matt J
le 24 Déc 2012
1 vote
See also the convn method of this class
Muruganandham Subramanian
le 24 Déc 2012
>>doc conv
Refer this also:
Wayne King
le 24 Déc 2012
x = [1 2 0 0 -3];
h = [3 2];
y = conv(x,h);
subplot(311)
stem(0:4,x,'markerfacecolor',[0 0 1])
set(gca,'xlim',[0 5]);
subplot(312)
stem(0:1,h,'markerfacecolor',[0 0 1])
set(gca,'xlim',[0 5]);
subplot(313)
stem(0:5,y,'markerfacecolor',[0 0 1])
set(gca,'xlim',[0 5]);
2 commentaires
Saso sasose
le 12 Avr 2017
this is for (n ) but what would I do if I need continuous convolution
Catégories
En savoir plus sur Subplots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!