ÔÆÌ⺣ - רҵÎÄÕ·¶ÀýÎĵµ×ÊÁÏ·ÖÏíÆ½Ì¨

µ±Ç°Î»ÖãºÊ×Ò³ > Á¬ÐøÊ±¼äÐźźÍϵͳʱÓò·ÖÎö¼°MATLABʵÏÖ

Á¬ÐøÊ±¼äÐźźÍϵͳʱÓò·ÖÎö¼°MATLABʵÏÖ

  • 62 ´ÎÔĶÁ
  • 3 ´ÎÏÂÔØ
  • 2025/5/2 16:56:28

MatlabÓ¦ÓÃʵ¼ù¿Î³ÌÉè¼Æ

subplot(212); ezplot(y1); µ¹Ïà clc; t=0:0.0001:2; y=sin(2*pi*t); y1=-y; subplot(211); plot(t,y);

axis([0 2 -1.5 1.5]); subplot(212); plot(t,y1); axis([0 2 -1.5 1.5]); ×ۺϱ仯 clc£» syms t;

f=sym('sin(t)/t'); %¶¨Òå·ûºÅº¯Êýf(t)=sin(t)/t f1=subs(f,t,t+3); %¶Ôf½øÐÐÒÆÎ» f2=subs(f1,t,2*t); %¶Ôf1½øÐг߶ȱ任 f3=subs(f2,t,-t); %¶Ôf2½øÐз´ñÞ subplot(2,2,1);ezplot(f,[-8,8]);grid on; subplot(2,2,2);ezplot(f1,[-8,8]);grid on; subplot(2,2,3);ezplot(f2,[-8,8]);grid on; subplot(2,2,4);ezplot(f3,[-8,8]);grid on;

½»Ö±Á÷·Ö½â

clc;

32

MatlabÓ¦ÓÃʵ¼ù¿Î³ÌÉè¼Æ

t=-1:0.001:1; f=sin(2*pi*t)+2; g=mean(f); h=f-g; subplot(311); plot(t,f);

axis([-1 1 0.5 3.5]); subplot(312); plot(t,g);

axis([-1 1 1.5 2.5]); subplot(313); plot(t,h);

axis([-1 1 -1.5 1.5]);

ÆæÅ¼·Ö½â

clc; syms t;

f=sym('sin(t- 0.1)+t '); f1=subs(f,t,-t) g=1/2*(f+f1); h=1/2*(f-f1); subplot(311); ezplot(f,[-8,8]); subplot(312); ezplot(g,[-8,8]); subplot(313); ezplot(h,[-8,8]);

¾í»ý

33

MatlabÓ¦ÓÃʵ¼ù¿Î³ÌÉè¼Æ

function [f,k]=sconv(f1,f2,k1,k2,p) %¼ÆËãÁ¬ÐøÐźží»ý»ý·Ö f(t)=f1(t)*f2(t) % f: ¾í»ý»ý·Ö f(t)¶ÔÓ¦µÄ·ÇÁãÑùÖµÏòÁ¿ % k£ºf(t)µÄ¶ÔӦʱ¼äÏòÁ¿ % f1: f1(t)·ÇÁãÑùÖµÏòÁ¿ % f2: f2(t)µÄ·ÇÁãÑùÖµÏòÁ¿ % k1: f1(t)µÄ¶ÔӦʱ¼äÏòÁ¿ % k2: f2(t)µÄ¶ÔӦʱ¼äÏòÁ¿ % p£ºÈ¡Ñùʱ¼ä¼ä¸ô

f=conv(f1,f2); %¼ÆËãÐòÁÐ f1 Óë f2 µÄ¾í»ýºÍ f f=f*p;

k0=k1(1)+k2(1); %¼ÆËãÐòÁÐ f ·ÇÁãÑùÖµµÄÆðµãλÖà k3=length(f1)+length(f2)-2; %¼ÆËã¾í»ýºÍ f µÄ·ÇÁãÑùÖµµÄ¿í¶È

k=k0:p:k3*p; %È·¶¨¾í»ýºÍ f ·ÇÁãÑùÖµµÄʱ¼äÏòÁ¿ subplot(2,2,1)

plot(k1,f1) %ÔÚ×Óͼ 1 »æ f1(t)ʱÓò²¨ÐÎͼ title('f1(t)') xlabel('t') ylabel('f1(t)') subplot(2,2,2)

plot(k2,f2) %ÔÚ×Óͼ 2 »æ f2(t)ʱ²¨ÐÎͼ title('f2(t)') xlabel('t') ylabel('f2(t)') subplot(2,2,3)

plot(k,f); %»­¾í»ý f(t)µÄʱÓò²¨ÐÎ h=get(gca,'position'); h(3)=2.5*h(3);

set(gca,'position',h) %½«µÚÈý¸ö×ÓͼµÄºá×ø±ê·¶Î§À©ÎªÔ­À´µÄ 2.5 ±¶

34

MatlabÓ¦ÓÃʵ¼ù¿Î³ÌÉè¼Æ

title('f(t)=f1(t)*f2(t)') xlabel('t') ylabel('f(t)')

35

  • ÊÕ²Ø
  • Î¥¹æ¾Ù±¨
  • °æÈ¨ÈÏÁì
ÏÂÔØÎĵµ10.00 Ôª ¼ÓÈëVIPÃâ·ÑÏÂÔØ
ÍÆ¼öÏÂÔØ
±¾ÎÄ×÷Õߣº...

¹²·ÖÏí92ƪÏà¹ØÎĵµ

Îĵµ¼ò½é£º

MatlabÓ¦ÓÃʵ¼ù¿Î³ÌÉè¼Æ subplot(212); ezplot(y1); µ¹Ïà clc; t=0:0.0001:2; y=sin(2*pi*t); y1=-y; subplot(211); plot(t,y); axis([0 2 -1.5 1.5]); subplot(212); plot(t,y1); axis([0 2 -1.5 1.5]); ×ۺϱ仯 clc£» syms t; f=sym('sin(t)/t'); %¶¨Òå·ûºÅº¯Êýf(t)=sin(t)/t f1=subs(f,t,t+3); %¶Ôf½øÐÐÒÆÎ» f2=subs(f1,t,2*t); %¶Ôf1½øÐг߶ȱ任 f3=subs(f2,t,-t); %¶Ôf2½øÐз´ñÞ subplot(2,2,1);ezplot(f,[-8,8]

¡Á ÓοͿì½ÝÏÂÔØÍ¨µÀ£¨ÏÂÔØºó¿ÉÒÔ×ÔÓɸ´ÖƺÍÅŰ棩
µ¥Æª¸¶·ÑÏÂÔØ
ÏÞÊ±ÌØ¼Û£º10 Ôª/·Ý Ô­¼Û:20Ôª
VIP°üÔÂÏÂÔØ
ÌØ¼Û£º29 Ôª/Ô ԭ¼Û:99Ôª
µÍÖÁ 0.3 Ôª/·Ý ÿÔÂÏÂÔØ150·Ý
ȫվÄÚÈÝÃâ·Ñ×ÔÓɸ´ÖÆ
VIP°üÔÂÏÂÔØ
ÌØ¼Û£º29 Ôª/Ô ԭ¼Û:99Ôª
µÍÖÁ 0.3 Ôª/·Ý ÿÔÂÏÂÔØ150·Ý
ȫվÄÚÈÝÃâ·Ñ×ÔÓɸ´ÖÆ
×¢£ºÏÂÔØÎĵµÓпÉÄÜ¡°Ö»ÓÐĿ¼»òÕßÄÚÈݲ»È«¡±µÈÇé¿ö£¬ÇëÏÂÔØÖ®Ç°×¢Òâ±æ±ð£¬Èç¹ûÄúÒѸ¶·ÑÇÒÎÞ·¨ÏÂÔØ»òÄÚÈÝÓÐÎÊÌ⣬ÇëÁªÏµÎÒÃÇЭÖúÄã´¦Àí¡£
΢ÐÅ£ºfanwen365 QQ£º370150219
Copyright © ÔÆÌ⺣ All Rights Reserved. ËÕICP±¸16052595ºÅ-3 ÍøÕ¾µØÍ¼ ¿Í·þQQ£º370150219 ÓÊÏ䣺370150219@qq.com