So I assume you want to create a contour plot from irregular data. The basic procedure is here. For your case,
t = data(:,1);
h = data(:,2);
p = data(:,3);
n_elem = 33;
tlin = linspace(min(t),max(t),n_elem);
hlin = linspace(min(h),max(h),n_elem);
[T,H] = meshgrid(tlin,hlin);
% use this for new MATLAB
f = scatteredInterpolant(t,h,p);
P = f(T,H);
% use this for older MATLAB
P = griddata(t,h,p,T,H);
contourf(T,H,P)
EDIT:
If your are using older version MATLAB, it may not have scatterInterpolant
. Then, use griddata
instead.