MATLAB: How to overlap Contour on the selected Slice in 3D graphic

contourslice

I generated code for slice images as follows,
figure(1);
Xsection=slice(X1,Y1,Z1,IMG,[Iso_center(1)],[],[]);
set(Xsection,'FaceColor','interp','Edgecolor','none');
set(Xsection,'FaceAlpha',0.45);
caxis auto; colorbar('location','EastOutside');
view(3); axis tight;
Then, I want to overlap Contour line on the selected slice image. Is there any way to do? If anyone knows, I'd like to ask your favor to let me know. Thank you.

Best Answer

Perhaps you're looking for contourslice?
doc contourslice