Second oder ode solution with euler methods

์กฐํšŒ ์ˆ˜: 13 (์ตœ๊ทผ 30์ผ)
Bayram FURKAN TORA
Bayram FURKAN TORA 2019๋…„ 5์›” 1์ผ
๋Œ“๊ธ€: James Tursa 2020๋…„ 3์›” 12์ผ
??ฬˆ+ ??ฬ‡ + ?? = ???(??) where, ?(? = ?) = ? and ?ฬ‡(? = ?) = 2 ? values in the domain of [? ??]. with a step size of ?? = ?. ?. How can I solve this system using euler methods ?
  ๋Œ“๊ธ€ ์ˆ˜: 4
Erivelton Gualter
Erivelton Gualter 2019๋…„ 5์›” 1์ผ
Hello Bayram,
You can easily use the ODE solvers from Matlab. Check the link bellow:
Also, you can write your own method. Check the follow link:
Try to implement it and if you face a problem, share here your code and I will be glad to help.
Bayram FURKAN TORA
Bayram FURKAN TORA 2019๋…„ 5์›” 1์ผ
Thank you James

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

๋‹ต๋ณ€ (1๊ฐœ)

James Tursa
James Tursa 2019๋…„ 5์›” 1์ผ
ํŽธ์ง‘: James Tursa 2019๋…„ 5์›” 2์ผ
Rewrite your 2nd order equation as a pair of first order equations, then use Euler method on a 2-element vector. I.e.,
Define your 2-element state vector y as
y(1) is defined to be x
y(2) is defined to be xdot
The derivative of y(1) is y(2) by definition.
The derivative of y(2) can be found by solving your 2nd order DE for xdotdot.
See the van der Pol equation example in the doc here for an example of turning a 2nd order DE into a pair of 1st order DEs:
You can essentially use your 1st order Euler code as an outline for this 2nd order system. Simply replace the scalar state with a 2-element vector state in your code.
  ๋Œ“๊ธ€ ์ˆ˜: 2
Pranay Harjai
Pranay Harjai 2020๋…„ 3์›” 12์ผ
How to replace the scalar state with a 2-element vector state
James Tursa
James Tursa 2020๋…„ 3์›” 12์ผ
Open up a new question, show your current code, and then we can show you how to modify it for a 2-element state vector.

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Ordinary Differential Equations์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

์ œํ’ˆ

Community Treasure Hunt

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

Start Hunting!

Translated by