Time varying parameters of a State-Space block
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Out of curiosity, I tried to implement a lorenz attractor (an nonlinear system) with a statespace block (continuous) with time varying values of the [A] matrix. I did this using a simple s-function using Dwork vars. The update routine changes [A] matrix of the statespace block at each step. However when I compare the output with another implementation (in the same mdl file) which uses a direct matrix multiplication and an integrator the outputs differ (initially small, but grow eventually). Both implementations use same inputs and same initial conditions. I've been trying to understand why they differ for a while but can't seem to get a clue. Any idea? No reason to believe they cannot be expected to be the same. The output at the second integration timestep itself differs in 13th place after decimal and it grows soon.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!