フィルターのクリア

Solve and plot using explicit finite difference method for 1D heat transfer.

4 ビュー (過去 30 日間)
Sanley Guerrier
Sanley Guerrier 2023 年 8 月 15 日
編集済み: Sanley Guerrier 2023 年 8 月 29 日
Dear experts:
I would to solve and plot a 1D heat transfer for a pavement. My for loops aren't working properly, I have the matlab file attached here. Can someone helps with the for loops, please?
Your help will be greatly appriciated!
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 8 月 15 日
編集済み: Dyuman Joshi 2023 年 8 月 15 日
"Can you help write a MATLAB CODE for solve and plot the equations?"
No, MATLAB Answers is not a homeworking solving service. If you want help from the forum, make an effort to write code, then ask where you are having difficulty.
If you aren't sure where to start because you're not familiar with how to write MATLAB code, I suggest you start with the free MATLAB Onramp tutorial to learn the essentials of MATLAB.

サインインしてコメントする。

回答 (1 件)

William Rose
William Rose 2023 年 8 月 28 日
@Dyuman Joshi is exactly correct (as usual :) ).
Hint: You have derivatives involving two variables: time and position. One way you could do this problem is by writing nested for loops: an outer loop over time, and an inner loop over position. Good luck.
  1 件のコメント
Sanley Guerrier
Sanley Guerrier 2023 年 8 月 29 日
Thank you, Dyuman.
I tried to aproximate the temperature using finite difference method but my for loops didn't work. Could you check my code, please?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by