数学建模与数学实验(第3版)课件+matlab

源代码在线查看: l14.m

软件大小: 8.25M
上传用户: yangxiaoyong6
关键词: matlab 数学建模 实验
下载地址: 免注册下载 普通下载 VIP

相关代码

				load xyz
				xi=0:50:5600;
				yi=0:50:4800;
				
				zi=interp2(x,y,z,xi,yi','nearest');
				subplot(1,3,1),contour(xi,yi,zi,10,'r');
				hold on
				plot(2000,2800,'c.',0,800,'r.',4000,2000,'r.',2000,4000,'r.','MarkerSize',20);
				hold on;pause
				
				zi=interp2(x,y,z,xi,yi');
				subplot(1,3,2),contour(xi,yi,zi,10,'r');
				hold on
				plot(2000,2800,'c.',0,800,'r.',4000,2000,'r.',2000,4000,'r.','MarkerSize',20);
				hold on;pause
				
				zi=interp2(x,y,z,xi,yi','cubic');
				subplot(1,3,3),contour(xi,yi,zi,10,'r');
				hold on
				plot(2000,2800,'c.',0,800,'r.',4000,2000,'r.',2000,4000,'r.','MarkerSize',20);
							

相关资源