Section: Handle-Based Graphics
contour
function. Please
see its help for details.
--> [x,y] = meshgrid([-2:.25:2]); --> z=x.*exp(-x.^2-y.^2); --> contour3(x,y,z,30); Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function --> axis square; --> view(-15,25) Warning: Newly defined variable xlim shadows a function of the same name. Use clear xlim to recover access to the function Warning: Newly defined variable ylim shadows a function of the same name. Use clear ylim to recover access to the function Warning: Newly defined variable zlim shadows a function of the same name. Use clear zlim to recover access to the function
The resulting plot