I am trying to creat a 3D surface plot with the contour of the surface projected on the top face (XY plane in Z = max)
Following is the code used:
f = figure('PaperSize',[8 8]);Z = table2array(Table);Z = Z(:,2:N+1);Y = Table.Wavenumber_cm_1_;X = [1:N];SurfacePlot = surf(X,Y,Z);ylabel('Wavenumber[cm^-1]');xlabel('Aliquot Number');zlabel('Absorbance[a.u.]');colormap jetshading interpgrid off;hold on contourf(X,Y,Z);hold off
The problem is that the contour is created on XY plate (under the surface plot). How can move the contour up to the top surface?
Thank you.
Best Answer