该代码由matlab编写而成

源代码在线查看: l14.m

软件大小: 183 K
上传用户: zbcs1025
关键词: 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);
							

相关资源