You are here

Solution to Exercise 5.1

9 October, 2015 - 15:37

MATLAB solution is as follows;

    » pressure=[2.1 2.0];
» sat_temp=[214.9 212.4];
» h_f=[920 908.6];
» h_fg=[1878.2 1888.6];
» h_g=[2798.2 2797.2];

» sat_temp_new=interp1(pressure,sat_temp,2.04)

sat_temp_new =

    213.4000

» h_f_new=interp1(pressure,h_f,2.04)

h_f_new =

    913.1600

» h_fg_new=interp1(pressure,h_fg,2.04)

h_fg_new =

    1.8844e+003

» h_g_new=interp1(pressure,h_g,2.04)

h_g_new =

    2.7976e+003