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 Commenti

Do you actually mean the interval 0 ≤ x ≤ 1? Otherwise you don't have a lower bound.
Andrew Reibold
Andrew Reibold il 2 Dic 2014
Modificato: Andrew Reibold il 2 Dic 2014
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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Richiesto:

il 2 Dic 2014

Modificato:

il 2 Dic 2014

Community Treasure Hunt

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

Start Hunting!

Translated by