MATLAB: For α=0.2, β=0.5 >>> z= 27.5, for α=0.5, β=0.8 >>> z=17.0 , for α=0.2, β=0.8 >>>z=18.6,i want to get 3-D plot between α,β and Z without writting equation for Z.

surf plot

for plotting surf ,kindly help me for my question.

Best Answer

a = [0.2 0.5 0.2] ;
b = [0.5 0.8 0.8] ;
z = [27.5 17. 18.6] ;
[A,B] = meshgrid(a,b) ;
F = scatteredInterpolant(a',b',z') ;
Z = F(A,B) ;
surf(A,B,Z)