Matlab Code Homework 7 TK
Matlab Code Homework 7 TK
fun=inline('0.68/(exp((-1524891/T^2)+7.33129-0.89143*log(168)))+0.32/(exp((1280557/T^2)+7.94986-0.96455*log(168)))-1','T');
T=fsolve(fun,600,optimset('Display','off'))
display('Dew point temperature')
fun=inline('0.68*(exp((-1524891/T^2)+7.33129-0.89143*log(168)))+0.32*(exp((1280557/T^2)+7.94986-0.96455*log(168)))-1','T');
T=fsolve(fun,600,optimset('Display','off'))
display('Temperature in which vapor mixture is completely condensed')
T =
719.9200
Dew point temperature
T =
705.7515
Temperature in which vapor mixture is completely condensed
392.5396
Equation solved.
fsolve completed because the vector of function values is near zero
as measured by the default value of the function tolerance, and
the problem appears regular as measured by the gradient.
<stopping criteria details>
P =
38.8079
Results:
P=
Columns 1 through 6
Columns 7 through 9