셈툴 다운로드

셈툴 튜토리얼

신호처리 | 신호에 대한 연산 |

페이지 정보

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

본문

지시된 구간에서 다음 신호를 각각 만들고 그려보자.

a) 

ex2_1.cem
figure(1);
% a) x(n) = 2*delta(n+2) - delta(n-4), -5<=n<=5 
 n = [-5:5];
 x = 2*implseq(-2,-5,5)-implseq(4,-5,5);
 subplot(2,2,1); stem(n,x,"-"); title("Sequence in Example 2.1a") xtitle("n"); ytitle("x(n)");

b) 

ex2_1.cem
% b) x(n) = n[u(n)-u(n-10)]+10*exp(-0.3(n-10))(u(n-10)-u(n-20)); 0<=n<=20 
 n = [0:20];
 x1 = n.*(stepseq(0,0,20)-stepseq(10,0,20));
 x2 = 10*exp(-0.3*(n-10)).*(stepseq(10,0,20)-stepseq(20,0,20));
 x = x1+x2;
 subplot(2,2,2);stem(n,x,"-");
 title("Sequence in Example 2.1b") xtitle("n");ytitle("x(n)");

c) , 여기서 은 평균이 0이고 분산이 1인 가우시안 불규칙 신호이다.

ex2_1.cem
% c) x(n) = cos(0.04*pi*n) + 0.2*w(n); 0<=n<=50, w(n): Gaussian (0,1) 
 n = [0:50];
 k=size(n)';
 x = cos(0.04*pi*n)+0.2*rand(k(1),k(2));
 subplot(2,2,3);stem(n,x,"-");title("Sequence in Example 2.1c") xtitle("n");ytitle("x(n)");

d) 

ex2_1.cem
% d) x(n) = {...,5,4,3,2,1,5,4,3,2,1,...}; -10<=n<=9 
 n=[-10:9];
 x=[5,4,3,2,1];
 xtilde=x' * ones(1,4);
 xtilde=(xtilde(:))';
 subplot(2,2,4);stem(n,xtilde,"-");title("Sequence in Example 2.1d") xtitle("n");ytitle("xtilde(n)");


댓글목록

등록된 댓글이 없습니다.