Demo entry 6776985

fourier conversion

   

Submitted by zkh on Dec 06, 2018 at 13:52
Language: Matlab. Code size: 674 Bytes.

syms t y;
y=sin(t)/t;%³éÑùÐźÅ
subplot(241);
ezplot(y,[-10,10]);%ʱÓòͼ
subplot(245);
ezplot(fourier(y),[-5,5]);%ƵÓòͼ
title('pi*(u(w+1)-u(w-1))');
subplot(242);
ezplot(sin(t-3)/(t-3),[-10,10]);%ʱÒÆÈý¸öµ¥Î»ºóµÄʱÓòͼ
subplot(246);
ezplot(abs(fourier(sin(t-3)/(t-3))),[-2,2]);%ʱÒÆÐÔÖÊ
title('exp(-3*j*w)*X(j*w)');
subplot(243);
ezplot((1/3)*(sin(3*t)/t),[-5,5]);%³ß¶È±ä»»ºóµÄʱÓòͼ
subplot(247);
ezplot(abs(fourier((1/3)*(sin(3*t)/t))),[-5,5]);%³ß¶È±ä»»ÐÔÖÊ
title('1/3*X(j*w/3)');
subplot(244);
ezplot(cos(t)/t-sin(t)/t^2,[-5,5]);%ʱÓò΢·ÖºóµÄʱÓòͼ
subplot(248);
ezplot(abs(fourier(cos(t)/t-sin(t)/t^2)),[-2,2]);%ʱÓò΢·Ö±ä»»ÐÔÖÊ
title('j*w*X(j*w)');

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).