Smooth image in matlab

In matlab, sometimes I prefer to plot a image for mesh data instead of surf and use view(2) (view(2) gives the top view of the surface plot). However,

imagesc(x,y,z)
shading 'interp'

does not work. This problem can be solved by using:

pcolor(x,y,z)
shading 'interp'
set(gca,'TickDir','out')

.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>