How can i use euler method in matlab

How do i use euler method to approximate a result for the following equation: dy/dx=y-2x/y, y(0)=1, 0≥x≤1

2 个评论

Do you actually mean the interval 0 ≤ x ≤ 1? Otherwise you don't have a lower bound.
Do you know what Euler method is?? Thats the first step, but thats not a Matlab problem or what this forum is really for.
What parts of the method are you struggling to code? I have made a code to do this before and would be happy to help. You haven't shown us any progress or work you have made to attempt this though.
Most people on this forum don't attempt to help if you have shown that you have attempted yourself.. The ones that do are quite graceful I suppose.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

提问:

2014-12-2

Community Treasure Hunt

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

Start Hunting!

Translated by