Heat flux equation coding
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Walter Roberson
le 28 Juil 2023
[sorted_t, idx] = sort(T);
sorted_R = R(idx);
gr = gradient(sorted_t, sorted_R);
q = -mean(gr);
4 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!