No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7

by

 

13 Mar 2003 (Updated )

Self-instructive text on undergraduate algebra, statistics, differential and integral calculus.

ex223.m
% ex223.m:  Surface and Contour Plots for Extreme Points						          	
clear all 
X=linspace(-1,1,30);  Y=X;				% Make a grid 
[X,Y]=meshgrid(X,Y);						% Make grid matrices
F=exp(-X.^2-Y.^2)- 1.1*exp(-(X-0.1).^2-(Y-0.2).^2);
figure(1),  surf(X,Y,F),  view(0,90),  colormap(jet),  shading interp	
   xlabel('x'),  ylabel('y')  
figure(2), cs=contour(X,Y,F,20);  colormap(jet),  clabel(cs)
   xlabel('x'),  ylabel('y') 
   title('exp(-x^2-y^2)- 1.1*exp(-(x-0.1)^2-(y-0.2)^2)') 

Contact us