t1len=length(t1); t2=0:tspan:3.5; t2len=length(t2);
t3=0:tspan:(t1len+t2len-2)*tspan;
f1=exp(-t1).*(heaviside(t1)-heaviside(t1-2)); f2=heaviside(t2)-heaviside(t2-3); w=conv(f1,f2); w=w*tspan;
subplot(3,1,1); plot(t1,f1);
title('f1ÐźŲ¨ÐÎ'); grid on;
xlabel('ʱ¼ät/s'); axis([0 7 0 2]); subplot(3,1,2); plot(t2,f2);
title('f2ÐźŲ¨ÐÎ'); grid on;
xlabel('ʱ¼ät/s'); axis([0 7 0 2]); subplot(3,1,3); plot(t3,w);
title('f1ºÍf2Ðźží»ý½á¹û'); xlabel('ʱ¼ät/s'); grid on;ͼÏñÈçÏ£º
6. ±àÖÆÒ»¸ömÎļþ,Çó³ö³éÑùº¯ÊýSa£¨t)=sin(t)/tµÄ¸µÁ¢Ò¶±ä»»£¬²¢ÔÚÒ»¸ö´°¿ÚÖл³ö³éÑùº¯ÊýµÄʱÓò²¨ÐÎºÍÆµÆ×ͼÒÔ¼°ÆµÆ×º¯Êý·´±ä»»µÄ²¨ÐΡ£ ³ÌÐòÈçÏ£º
close all;clear;clc; syms t;
Sa=sin(t)/t; subplot(3,1,1);
ezplot(Sa,[-10,10]); title('Sa(t)ʱÓò²¨ÐÎ'); Fw=fourier(Sa); subplot(3,1,2); ezplot('abs(Fw)'); title('ƵÆ×ͼ'); ft=ifourier(Fw) subplot(3,1,3); ezplot(ft);
title('ƵÆ×º¯Êý·´±ä»»µÄ²¨ÐÎ'); ͼÏñÈçÏ£º
ʵÑé½áÂÛ
ÊìϤ¸÷¸öº¯Êý¹¦Äܲ¢ÕÆÎÕ¸÷Öֱ仯ÓÐÖúÓÚ½øÒ»²½Á˽â¸÷Öֱ仯µÄ·½Ê½ºÍÒâÒå¡£ÀûÓÃMatlab¿ÉÒÔÇóÁ¬Ðø£¬ÓÐÏÞʱÓòµÄÁã״̬ÏìÓ¦£¬ÇóÁ¬Ðø£¬ÓÐÏÞʱÓòµÄÁã״̬ÏìÓ¦£¬Matlab¿ÉÒÔ´ó´óÌá¸ßЧÂÊ£¬¶ÔÓÚijЩÐźŻòÏìÓ¦¸ø³öÒ»¸öÖ±¹Û½âÊͺ͸ÐÊÜ¡£
Ïà¹ØÍÆ¼ö£º