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.

ex221.m
% ex221.m:  Surface 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),  colormap(jet), colorbar	
   xlabel('x'),  ylabel('y'),  title('x^2+y^4')  		
figure(2),  surf(X,Y,F),  colormap(jet),  colorbar,  shading interp	
   xlabel('x'),  ylabel('y'),  title('x^2+y^4')  		
figure(3),  surfl(X,Y,F,'y'),   colormap(gray),  shading interp
   xlabel('x'),  ylabel('y'),  title('x^2+y^4')  	
	

 	

Contact us