how to solve this ode:
Mostrar comentarios más antiguos
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
2 comentarios
darova
el 20 de Feb. de 2021
WHat is wrong? Do you have any errors?
Jasneet Singh
el 20 de Feb. de 2021
Respuestas (1)
darova
el 20 de Feb. de 2021
Try this way
[t,y]=ode45(@EQ2,[0:1800],[0,0]);
1 comentario
Jasneet Singh
el 20 de Feb. de 2021
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!