You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: IAPWS_IF97.m
    path of file: ./repos/FVTool/PhysicalProperties
    
    the code of the file until where you have to start completion: function out = IAPWS_IF97(fun,in1,in2)
% IAPWS_IF97(fun,in1,in2)
%   102 water functions of water properties, based on the International Association on Properties of Water and Steam
%   Industrial Formulation 1997 (IAPWS-IF97), IAPWS-IF97-S01, IAPWS-IF97-S03rev, IAPWS-IF97-S04, IAPWS-IF97-S05, Revised
%   Advisory Note No. 3 Thermodynamic Derivatives from IAPWS Formulations 2008, Release on the IAPWS Formulation 2008
%   for the Viscosity of Ordinary Water Substance, 2008 Revised Release on the IAPWS Form
    
function p = p3sat_h(h)
dim = length(h);
pstar = 22; % [MPa]
hstar = 2600; % [kJ/kg]
eta = h/hstar;
I = [0,1,1,1,1,5,7,8,14,20,22,24,28,36];
J = [0,1,3,4,36,3,0,24,16,16,3,18,8,24];
n = [0.600073641753024,-9.36203654849857,24.6590798594147,-107.014222858224,-91582131580576.8,-8623.32011700662, ...
    -23.5837344740032,2.52304969384128e+17,-3.89718771997719e+18,-3.33775713645296e+22,35649946963.6328, ...
    -1.48547544720641e+26,3.30611514838798e+18,8.13641294467829e+37];
Nterms = 14;
I = ones(dim,1)*I;
J = ones(dim,1)*J;
n = ones(dim,1)*n;
eta = eta*ones(1,Nterms);
pi = sum(n.*(eta-1.02).^I.*(eta-0.608).^J,2);
p = pstar*pi;
end