셈툴 다운로드

셈툴 튜토리얼

신호처리 | 두 신호의 콘볼루션 |

페이지 정보

작성자 cemtool 작성일14-04-23 14:53 조회10,229회 댓글0건

본문

다음 두 신호에 대해

콘벌루션  을 구해보자

ex2_8.cem
/*  
   x(n)=[3,11,7,0,-1,4,2]; nx = [-3:3]   h(n)=[2,3,0,-5,2,1]; nh = [-1:4]   y(n)=conv(x,h)   input x(n)*/
 
 x = [3,11,7,0,-1,4,2]; nx = [-3:3];
 /* impulse response h(n) */
 h = [2,3,0,-5,2,1]; nh = [-1:4];
 subplot(1,1,1);
 /* plot x(k) and h(k) */
 subplot(2,2,1);
 stem(nx-0.05,x,"-");
 subplot(2,2,3);
  stem(nh+0.05,h,"-");
 /*plot x(k) and h(-k)*/
 subplot(2,2,2); stem(nx-0.05,x,"-");
 subplot(2,2,2);
 stem(-fliplr(nh)+0.05,fliplr(h),"-");
 /* plot x(k) and h(-1-k)*/
 subplot(2,2,3); stem(nx-0.05,x,"-");
 subplot(2,2,3);
 stem(-fliplr(nh)+0.05-1,fliplr(h),"-");
 /* plot x(k) and h(2-k)*/
 subplot(2,2,4); stem(nx-0.05,x,"-");
 subplot(2,2,4);
 stem(-fliplr(nh)+0.05+2,fliplr(h),"-");


댓글목록

등록된 댓글이 없습니다.