Mountain Range - %contour plot clear; x = linspace(-3,3); y...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%File name = MountainRange function MountainRange x = linspace(-3,3); y = linspace(-3,3); [X,Y] = meshgrid(x,y); Z = 9000*exp(-X.^2-Y.^2-X-1) + 6000 * (X.^2 + Y.^4) .* exp(-X.^2 - Y.^2); subplot(2,1,1), surf(X,Y,Z), grid on xlabel('miles') ylabel('miles') zlabel('feet') title('Sierra Nevada Mountain Range')
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %contour plot clear; x = linspace(-3,3); y = linspace(-3,3); [X,Y] = meshgrid(x,y); Z = 9000*exp(-X.^2-Y.^2-X-1) + 6000 * (X.^2 + Y.^4) .* exp(-X.^2 - Y.^2); subplot(2,1,2), contour(X,Y,Z), grid on xlabel('miles') ylabel('miles') zlabel('feet') title('Sierra Nevada Mountain Range')...
View Full Document

This homework help was uploaded on 03/30/2008 for the course CSE 131 taught by Professor Sticklen during the Spring '08 term at Michigan State University.

Ask a homework question - tutors are online