Heat flux equation coding
5 ビュー (過去 30 日間)
古いコメントを表示
Hi
Can you please help me code a 1-D heat flux equation q =- k(dT/dR).
I have a tabulated data of both T and R values.
Thank you in advance
0 件のコメント
回答 (1 件)
Walter Roberson
2023 年 7 月 28 日
[sorted_t, idx] = sort(T);
sorted_R = R(idx);
gr = gradient(sorted_t, sorted_R);
q = -mean(gr);
4 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!