신호처리 | 신호 그리기 |
페이지 정보
작성자 cemtool 작성일14-04-23 14:47 조회9,920회 댓글0건본문
일때 다음 신호를 구하고 그려보자.
a)
- ex2_2.cem
figure(1); n = -2:10; x = [1:7,6:1:-1]; [x11,n11] = shiftsig(x,n,5); [x12,n12] = shiftsig(x,n,-4); [x1,n1] = addsig(2*x11,n11,-3*x12,n12); subplot(2,1,1); stem(n1,x1,"-"); title("Sequence in Example 2.2a") xtitle("n"); ytitle("x1(n)");
b)
- ex2_2.cem
/* b) x2(n) = x(3-n) + x(n)*x(n-2) */ [x21,n21] = foldsig(x,n); [x21,n21] = shiftsig(x21,n21,3); [x22,n22] = shiftsig(x,n,2); [x22,n22] = multsig(x,n,x22,n22); [x2,n2] = addsig(x21,n21,x22,n22); subplot(2,1,2); stem(n2,x2,"-"); title("Sequence in Example 2.2b") xtitle("n"); ytitle("x2(n)");
댓글목록
등록된 댓글이 없습니다.