Oleh
M Joe Devin B
1731130074
TT 3D
function [y,n]=sinyalbalik(x,n)
y=fliplr(x);n=-fliplr(n);
File dsp3.m
n=-5:5; x=(.5).^n;
[y,n]=sinyalbalik(x,n);
subplot(2,1,1),stem(n,x,'r','linewidth',2.0),
subplot(2,1,2),stem(n,y,'k','linewidth',2.0);
File sinyalgeser.m
function [y,n]=sinyalgeser(x,m,n0)
n=m+n0; y=x;
File dsp4.m
m=0:10; x=rand(1,length(m));
[y,n]=sinyalgeser(x,m,3);
subplot(2,1,1),stem(m,x,'linewidth',2.0),grid on
subplot(2,1,2),stem(n,y,'linewidth',2.0), grid on;
File dsp5.m
y[n] = 2.x[-n+3]
n=-1→y[-1] = 2.x[-(-0)+3]
= 2.x[4]
= 2(7) = 14
n=-2→y[-2] = 2.x[-(-2)+3]
= 2.x[5]
= 2(6) = 12
n=-4→y[-4] = 2.x[-(-4)+3]
= 2.x[7]
= 2(4) = 8
n=-5→y[-5] = 2.x[-(-5)+3]
= 2.x[8]
= 2(3) = 6
n=-6→y[-6] = 2.x[-(-6)+3]
= 2.x[9]
= 2(2) = 4
n=-7→y[-7] = 2.x[-(-7)+3]
= 2.x[10]
= 2(1) = 2
n=-2:10; x=[1:7,6:-1:1];
[y1,n1]=sinyalbalik(2*x,n);
[y2,n2]=sinyalgeser(y1,n1,3);
subplot(3,1,1),stem(n,x,'r','linewidth',2.0),
subplot(3,1,2),stem(n1,y1,'g','linewidth',2.0),
subplot(3,1,3),stem(n2,y2,'b','linewidth',2.0);