Implementing a first order forward difference scheme in MATLAB
古いコメントを表示
Hi everyone,
I am trying to solve the first order differential equation on the figure below:

So that I can reproduce the curves below:

As you can see from the curves the specific heat has only two values 1.66 and 1.4. In the X equation, all the variables except x are constant. x can be taken to increase from 0 to 10. I want to produce the variation of M with X. Here they used first order forward difference, I'd like to know how I could do this using MATLAB. I'd appreciate any form of assistance. Regards Charles
1 件のコメント
Lukas Bystricky
2015 年 7 月 28 日
編集済み: Lukas Bystricky
2015 年 7 月 28 日
Alternatively, if you're interested in replicating that graph exactly (using first order methods), you should look up the forward euler method. It's very simple and requires little more than a single for loop.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


