T1 = readtable('Surface plot data.xlsx')
T1 =
x y z c
____ ____ ______ ______
3500 1300 0.3 370.66
6000 2200 0.45 316.32
7250 1750 0.375 327.03
4750 2650 0.525 305.79
5375 1975 0.4875 323.89
7875 2875 0.3375 295.35
6625 1525 0.5625 329.26
4125 2425 0.4125 321.77
4437 1862 0.5812 324.85
6937 2762 0.4312 299.4
8187 1412 0.5062 330.26
5687 2312 0.3562 318.33
5062 1637 0.3937 342.51
7562 2537 0.5437 296.44
6312 2087 0.3187 321.77
3812 2987 0.4687 306.8
scatter3(T1.x, T1.y, T1.z, 75, T1.c, 'filled')
cm = colormap(turbo(height(T1)));
CL1 = clim
CL1 =
285.5780 370.6595
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
title('Scatter + Stem Plot')
xv = linspace(min(T1.x), max(T1.x), fix(size(T1,1)));
yv = linspace(min(T1.y), max(T1.y), fix(size(T1,1)));
[Xm,Ym] = ndgrid(xv, yv);
Ci = scatteredInterpolant(T1.x, T1.y, T1.c, 'natural','none');
F = scatteredInterpolant(T1.x, T1.y, T1.z, 'natural','none');
[Cm1,CM2] = bounds(Cm(:))
title('Surface — ‘natural’ Method, No Extrapolation')
Ci = scatteredInterpolant(T1.x, T1.y, T1.c, 'linear','none');
F = scatteredInterpolant(T1.x, T1.y, T1.z, 'linear','none');
title('Surface — ‘linear’ Method, No Extrapolation')
Ci = scatteredInterpolant(T1.x, T1.y, T1.c, 'nearest','none');
F = scatteredInterpolant(T1.x, T1.y, T1.z, 'nearest','none');
title('Surface — ‘nearest’ Method, No Extrapolation')