ÐźÅÓëϵͳʵÑé½Ì³Ì£¨Ö»Óд𰸣©

ÐźÅx(t)µÄ²¨ÐÎͼ ÐźÅy(t) = x(1.5t+3) µÄ²¨ÐÎͼ

Q1-8£º¸ø¶¨Ò»¸öÀëɢʱ¼äÐźÅx[n] = u[n] ¨C u[n-8]£¬·ÂÕÕʾÀý³ÌÐòProgram1_5£¬±àд³ÌÐò

Q1_8£¬²úÉúx[n]µÄ×óÒÆÐòÁÐx1[n] = x[n+6]ºÍÓÒÒÆÐòÁÐx2[n] = x[n-6]£¬²¢ÔÚͬһ¸öͼÐδ°¿ÚµÄÈý¸ö×ÓͼÖзֱð»æÖÆÕâÈý¸öÐòÁеÄͼÐΡ£

±àдµÄ³ÌÐòQ1_8ÈçÏ£º

±àд²úÉúx(t)µÄº¯ÊýÎļþxx.m

function y=xx(n) y=u(n)-u(n-8); clear,close all, n = -10:15;

x =xx(n); % Generate the original signal x(n)

x1 = xx(n+6); % Shift x(t) to the left by 2 second to get x1(n+6) x2 =xx(n-6); % Shift x(t) to the right by 2 second to get x2(n-6) subplot(311)

stem(n,x,'.') % Plot x(t) grid on,

title ('Original signal x(n)') subplot (312)

stem (n,x1,'.') % Plot x1(t) grid on,

title ('Left shifted version of x(n)') subplot (313)

stem (n,x2,'.') % Plot x2(t) grid on,

title ('Right shifted version of x(n)') xlabel ('Time t (sec)')

ÐźŲ¨ÐÎͼ

Q1-9£º±àд³ÌÐòQ1_9£¬Ê¹Ö®Äܹ»½ÓÊÜÒÔ¼üÅÌ·½Ê½ÊäÈëµÄ¶¨ÒåÔÚ²»Í¬Ê±¼ä¶ÎµÄÁ½¸ö²»Í¬Á¬

ÐøÊ±¼äÐźŲ¢Íê³É¾í»ýÔËË㣬·Ö±ð»æÖÆÕâÁ½¸öÐźż°Æä¾í»ýµÄ½á¹ûµÄͼÐΣ¬Í¼Ðΰ´ÕÕ2?2·Ö¸î³ÉËĸö×Óͼ¡£

±àдµÄ³ÌÐòQ1_9ÈçÏ£º

clear;close all; dt = 0.01;

t0=input('Input first signal t0:');t1=input('Input first first signal t1:'); tx = t0:dt:t1;

x = input('Input first signal variable(tx) :');

t2=input('Input second signal t0:');t3=input('Input second signal t1:'); th=t2:dt:t3;

h = input('Input second signal variable(th) :')

y = dt*conv(x,h); % Compute the convolution of x(t) and h(t) subplot(221)

plot(tx,x), grid on, title('Signal x(t)') xlabel('Time t sec') subplot(222)

plot(th,h), grid on, title('Signal h(t)') xlabel('Time t sec') subplot(313) plot(y), grid on,

convolution of x(t) and xlabel('Time t sec')ÐźÅ(t)*h(t)µÄ²¨ÐÎͼ

title('The h(t)')

x (t)¡¢h(t)ºÍx

Q1-10£º¸ø¶¨Á½¸öÀëɢʱ¼äÐòÁÐ

x[n] = 0.5n{u[n]-u[n-8]} h[n] = u[n]-u[n-8]

±àд³ÌÐòQ1_10£¬¼ÆËãËüÃǵľí»ý£¬²¢·Ö±ð»æÖÆx[n]¡¢h[n]ºÍËüÃǵľí»ýy[n]µÄͼÐΡ£

±àдµÄ³ÌÐòQ1_10ÈçÏ£º

n=0:10;

x = (0.5).^n.*(u(n)-u(n-8)); h = u(n)-u(n-8);

y =conv(x,h); % Compute the convolution of x(t) and h(t) subplot(221)

stem(n,x,'.'), grid on, title('Signal x(n)') subplot(222)

stem(n,h,'.'), grid on, title('Signal h(n)') subplot(212)

stem(y), grid on, title('The convolution of x(n) and h(n)'), xlabel('Time t sec');

ÐźÅx[n]¡¢h[n]ºÍy[n]µÄ²¨ÐÎͼ

Q1-11ÒÑÖªÒ»¸öÐòÁÐΪ

x[n]???n,?0,0?n?4otherwise

±àдMATLAB³ÌÐòQ1_11£¬Äܹ»½«x[n]ÒÔN = 8ΪÖÜÆÚ½øÐÐÖÜÆÚÑÓÍØµÃµ½Ò»¸öÖÜÆÚΪN =8µÄÖÜÆÚÐòÁÐy[n]£¬²¢·Ö±ð»æÖÆx[n]ºÍy[n]ͼÐΡ£

±àдµÄ³ÌÐòQ1_11ÈçÏ£º

U4.m

function y=u4(n) y=n.*(u(n)-u(n-5));

Q1¡ª¡ª11.m clear, close all; n =-16:32 x=u4(n); T = 8; y = 0; for k = -2:4;

y =y+u4(n-k*T); end

subplot(211) stem(n,x,'.'); grid on,

title ('Original signal x(n)') xlabel('Time t sec') subplot(212) stem(n,y);

title ('period signal x(n)') xlabel('Time t sec')

grid on,ÐźÅx[n]µÄ²¨ÐÎͼ ÐźÅy[n]µÄ²¨ÐÎͼ

ÁªÏµ¿Í·þ£º779662525#qq.com(#Ìæ»»Îª@)