How to make convolution between two signals?
이전 댓글 표시
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].
답변 (3개)
Matt J
2012년 12월 24일
1 개 추천
See also the convn method of this class
Muruganandham Subramanian
2012년 12월 24일
>>doc conv
Refer this also:
Wayne King
2012년 12월 24일
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
Saso sasose
2017년 4월 12일
this is for (n ) but what would I do if I need continuous convolution
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!