how to solve this ode:
1 次查看(过去 30 天)
显示 更早的评论
hello, this is my script help me withn this please,
[t,y]=ode45('EQ2',[0:1800],[0,0]);
function dydt=EQ2(t,y)
a=1; # pararmeters
k=20;
m=0.5;
F=0.01;
omega=2*pi;
dydt(1)=y(2);
dydt(2)=[(F*cos(omega*t)-c*y(2)-k*y(1))/m];
end
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!