Try something lilke this —
X = P(:,1);
Y = P(:,2);
Z = P(:,3);
Xv = linspace(min(X),max(X),numel(X))
Yv = linspace(min(Y),max(Y),numel(Y))
[Xm,Ym] = meshgrid(Xv,Yv);
Zm = griddata(X,Y,Z,Xm,Ym);
figure
contourf(Xm, Ym, Zm)
.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!