Problem facing in solving xdot=Ax system when A is unstable.
Afficher commentaires plus anciens
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 commentaires
Paul
le 26 Fév 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
le 27 Fév 2024
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



