% Zvalue.m % Script m-file % Done on 23-July-2001 % M.Subramanian % CompressFactor.mat is having the data of % Zo for various values of Pr & Tr % Data taken from Smith & Van Ness 5th Edition % Two Dimensional Interpolation load CompressFactor.mat Pr1 = input('Enter Reduced Pressure Pr: '); Tr1 = input('Enter Reduced Temperature Tr: '); Zo1 = interp2(Pr,Tr,Zo,Pr1,Tr1); Z11 = interp2(Pr,Tr,Z1,Pr1,Tr1); disp(Zo1); disp(Z11); %mesh(Pr,Tr,Zo) %xlabel('Pr') %ylabel('Tr') %zlabel('Z') %zlabel('Z')