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);
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!