How to solve this equations?

2 次查看(过去 30 天)
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 个评论
madhan ravi
madhan ravi 2018-12-31
编辑:madhan ravi 2018-12-31
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 2018-12-31
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

请先登录,再进行评论。

采纳的回答

Stephan
Stephan 2018-12-31
编辑:Stephan 2018-12-31
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 个评论
Arda Nova
Arda Nova 2018-12-31
编辑:Arda Nova 2018-12-31
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by