Solving constrained differential equations
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Salil Kulkarni
el 15 de Sept. de 2022
Comentada: Salil Kulkarni
el 16 de Sept. de 2022
I would like to solve coupled differential equations with some constraints. The detailed question appear below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1126905/image.jpeg)
2 comentarios
Respuesta aceptada
Torsten
el 16 de Sept. de 2022
Editada: Torsten
el 16 de Sept. de 2022
Solving the above system is only possible in the form
M = [1 0 0 0 0; ...
0 m1 0 0 0; ...
0 0 1 0 0; ...
0 0 0 m2 0; ...
0 m2*tan(theta) 0 -m2*tan(theta) 0];
f = [y2 ; -sin(theta)*N ; y4 ; sin(theta)*N ; -m2*g+cos(theta)*N];
M*[y1dot ; y2dot ; y3dot ; y4dot ; Ndot] = f(y1,y2,y3,y4,N)
But you might get the message from the integrator that the index of the system is >1.
Test it.
Más respuestas (0)
Ver también
Categorías
Más información sobre Ordinary Differential Equations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!