Problem facing in solving xdot=Ax system when A is unstable.
Mostrar comentarios más antiguos
When solving a problem using ode45 for the system
A is special unstable matrix. I encountered a situation where the solution x turned out to be on the order of $10^29$. Since I'm interested in the error between two states, theoretically the error should be zero. However, up to 4 decimal places, the values of the states seems to be the same, i.e., for example,
and
and but e=x1−x2 is not equal to zero. I understand that x1 and x2 have mismatched in decimal points, and the values are amplified by the exponent. How can I restrict these numerical instabilities? Please help.
3 comentarios
Paul
el 26 de Feb. de 2024
You're much more likely to get help if you post or attach your A-matrix (can attach a .mat file using the paperclip icon on the Insert menu) and post your code. If the theoretical error is zero, what is the goal of using ode45?
Hemanta Hazarika
el 27 de Feb. de 2024
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programming 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!



