MATLAB: How to make simplest 3D plot with 3 data already

3d plotsMATLAB

Hello, i am student and also beginner MATLAB user.
i want to create 3D plot with already i have 3 data (x,y,z) as below
x y z
7 15 0.056
7 10 0.085
7 24 0.035
8 5 0.17
8 5 0.17
8 5 0.17
9 7 0.12
9 8 0.10
9 20 0.025
Anyone please help me, those 3 data needed to depict in 3D plot graphic in simplest way.
before thanks…

Best Answer

data = [7 15 0.056
7 10 0.085
7 24 0.035
8 5 0.17
8 5 0.17
8 5 0.17
9 7 0.12
9 8 0.10
9 20 0.025];
x = data(:,1) ;
y = data(:,2) ;
z = data(:,3) ;
dt = delaunayTriangulation(x,y) ;
tri = dt.ConnectivityList ;
x1 = dt.Points(:,1) ;
y1 = dt.Points(:,2) ;
% get z
F = scatteredInterpolant(x,y,z) ;
z1 = F(x1,y1) ;
% plot
trisurf(tri,x1,y1,z1)