No BSD License  

Highlights from
Alternative Mathematics using MATLAB 7

image thumbnail

Alternative Mathematics using MATLAB 7



13 Mar 2003 (Updated )

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

% ex221c.m:  Surface and Contour Plots					          				          					          	
clear all
X=-1: 2/50: 1;  Y=-1: 2/50: 1;	% Make a grid of 50x50
[X,Y]=meshgrid(X,Y);			% Make grid matrices
F=X.^2+Y.^4;				% Calculate function for all (x,y)	
figure(1),  surf(X,Y,F),  view(0,90),  colormap(jet),  shading interp	
   colorbar,  xlabel('x'),  ylabel('y'),  title('x^2+ y^4') 
figure(2), cs=contour(X,Y,F, [0:0.1:2]);  colormap(jet)	
   xlabel('x'),  ylabel('y'),  title('x^2+ y^4'),  clabel(cs)



Contact us