To modify the location of the the contours in the plot you need to modify the ZData property. Each contour line is actually an individual patch object. The level at which these contours are drawn is stored in the ZData property of the patch object. Here is a small example:
meshc(peaks)
new_level = 5;
h = findobj('type','patch');
zd = get(h,'ZData');
for i = 1:length(zd)
set(h(i),'ZData',new_level*ones(length(zd{i}),1))
end
For further information on the ZData property of patches please see the MATLAB HelpDesk.
Best Answer