How to solve this equations?

1 view (last 30 days)
Arda Nova
Arda Nova on 31 Dec 2018
Edited: Stephan on 31 Dec 2018
These are hamoltionian ways of triple pendulum. I am very new to matlab and, I know little to nothing. I need a direction to go. Can I solve these in ode45? If I can, how can I insert these formulations to matlab. Can you show me roughly?
  2 Comments
madhan ravi
madhan ravi on 31 Dec 2018
Edited: madhan ravi on 31 Dec 2018
It can be solved using ode45 but before that please try something and come up with the code atleast the equation also mention what is p and theta a function of time ?
Arda Nova
Arda Nova on 31 Dec 2018
I see, as I said I am very new to even write a code, sorry. But even you saying it can be solved with ode45 is good for me. p is momenta, kg* m^2/sec. It's used to simplify equations, this way it is easier to put them in computer. Theta is the angle of the arm wrt to ground. When I asked can you show me roughly, what I meant is the formulation, not the whole code's itself. For example p1=A*thetadot1+B*thetadot2+C*thetadot3

Sign in to comment.

Accepted Answer

Stephan
Stephan on 31 Dec 2018
Edited: Stephan on 31 Dec 2018
Hi,
as Madhan already said in his comment, we need to see some code to help. Otherwise we would do your work, what is not the way things should work here.
For start have a read at the following links and try the given examples to learn how to deal with ode in Matlab:
If you work through this and the linked sites of the documentation in the 'see also' sections you should be able to start.
Trouble by doing this? Here is the right place to ask specific questions regarding YOUR code.
Best regards
Stephan
  1 Comment
Arda Nova
Arda Nova on 31 Dec 2018
Edited: Arda Nova on 31 Dec 2018
It will take a while to write something proper right now. I need to learn a lot in a short time. But that's on me. Thank you very much for the suggestions, I will surely start from there.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!