Skip to content

Incorrect identified system equations for a coupled system with symmetric coefficients #302

Closed Answered by akaptano
wanikhawar asked this question in Q&A
Discussion options

You must be logged in to vote

There is nothing wrong with your code -- it is the physics you need to check. You have chosen an initial condition that guarantees x1(t) = x2(t) for all time (plot the trajectories and you will see) and therefore x1' = 0.5 * x1dot + 0.5 * x2dot is correct.

Try with the initial condition [1, 0, 3, 0] and your problem will fix itself.

Best,
Alan

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@wanikhawar
Comment options

Comment options

You must be logged in to vote
2 replies
@wanikhawar
Comment options

@akaptano
Comment options

Answer selected by wanikhawar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants