|

楼主 |
发表于 2010-11-24 09:14
|
显示全部楼层
是用ODE45解吗?我解出来怎么衰减了?是不是解的不对?
function OK6
tspan=linspace(0,50,10000);
options=odeset('RelTol',1e-8,'AbsTol',[1e-8 1e-8]);
i=1;
[t,yy]=ode15s(@mytt5,tspan,[0.1 0]',options);
YY=yy.*180./pi;
figure(i)
plot(t,YY)
function dfy5=mytt5(t,x)
delta1=0.342;delta3=1.28*10^(-4); A=20;beta=4.68;
arfar=4.55*10^(-2);
dfy5=[x(2);-2*arfar*x(2)-(beta+2*delta1*cos(2*t))*x(1)-(delta3+delta3*cos(2*t)*x(1)^(3))]
|
|