MATLAB: How Can I do contour plot

contour plot

Suppose I have a square figure.

Best Answer

MATLAB cannot create continuous figures. You could approximate a continuous figure by creating a surf() or a patch() and configure shading and lighting properties. For your purpose I think a surf() would be most appropriate.
Related Question