How to create a function handle for thermodynamics(semi-infinite heat conduction) using erfc with multiple variables?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
%So my initial guess would be to create arrays or vectors for t, x, and alpha and try to pass those values through function handle something like :
thetafh = @(x,t,alpha) erfc(x/sqrt(4*alpha*t))
This is part of my final and any help is greatly appreciated please and thank you.
3 Kommentare
Akzeptierte Antwort
Torsten
am 27 Mai 2021
Bearbeitet: Torsten
am 27 Mai 2021
Use ./ instead of / in your definition of thetafh.
But you are asked to write a function, not a function handle.
7 Kommentare
Torsten
am 28 Mai 2021
Bearbeitet: Torsten
am 28 Mai 2021
I wonder why you sum up the theta values.
A call to your function handle with t(i) already gives you the dimensionless temperature.
The fact that you get dimensionless temperatures that exceed the value of 1 show that your summation must be wrong.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Thermal Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!