当前位置 :
【怎么用matlab画三维数字地图?中间内容为高度(单位:km)纵坐标(单位:km)横坐标(单位:km)01234567891011121314151617181920200.20.20.20.20.20.20.40.40.30.20.30.20.10.20.20.40.30.20.2】
1人问答
问题描述:

怎么用matlab画三维数字地图?

中间内容为高度(单位:km)

纵坐标(单位:km)横坐标(单位:km)01234567891011121314151617181920

200.20.20.20.20.20.20.40.40.30.20.30.20.10.20.20.40.30.20.20.20.2

190.30.20.20.20.20.40.30.30.30.30.40.20.20.20.20.40.40.40.30.20.2

180.20.30.30.20.310.40.50.30.30.30.30.20.20.20.60.50.40.40.20.2

170.20.20.40.211.10.90.40.30.30.50.30.20.20.20.70.30.60.60.30.4

160.20.20.90.71110.70.50.30.20.20.20.60.20.80.70.90.50.50.4

150.20.31111.211.10.80.30.20.20.20.50.30.60.60.80.70.60.5

140.20.4111.11.11.11.10.60.30.40.40.20.70.50.90.70.40.90.80.3

130.20.20.91.11.21.21.11.10.60.30.50.30.20.40.30.710.71.20.80.4

120.20.30.40.91.111.11.10.70.40.40.40.30.50.50.81.10.81.10.90.3

110.30.30.51.21.21.111.20.90.50.60.40.60.60.30.61.20.810.80.5

100.30.50.91.11.111.210.80.70.50.60.40.50.411.30.90.910.8

90.30.50.61.11.2111.10.90.40.40.50.50.80.60.910.50.80.80.9

80.40.50.411.11.210.90.70.50.60.30.60.40.6110.60.910.7

70.30.50.81.11.110.80.70.70.40.50.40.40.50.41.11.30.710.70.6

60.30.50.91.110.70.70.40.60.40.40.30.50.50.30.91.20.810.80.4

50.20.30.60.90.80.80.60.30.40.50.40.50.40.20.50.51.30.610.90.3

40.20.30.30.70.60.60.40.20.30.50.80.80.30.20.20.81.30.90.80.80.4

30.20.30.30.60.30.40.30.20.20.30.60.40.30.20.40.30.80.60.70.40.4

20.20.30.40.40.20.20.20.30.20.20.20.20.20.20.20.50.70.40.40.30.3

10.20.20.30.20.20.30.20.20.20.20.20.10.20.40.30.60.50.30.30.30.2

00.20.20.20.20.20.20.20.20.20.20.20.20.20.20.40.70.40.20.40.50.3

能否写出具体程序?

姬靖回答:
  先用原始点绘图,再用平滑绘图.   clear;clc;   A=[...   001234567891011121314151617181920   200.20.20.20.20.20.20.40.40.30.20.30.20.10.20.20.40.30.20.20.20.2   190.30.20.20.20.20.40.30.30.30.30.40.20.20.20.20.40.40.40.30.20.2   180.20.30.30.20.310.40.50.30.30.30.30.20.20.20.60.50.40.40.20.2   170.20.20.40.211.10.90.40.30.30.50.30.20.20.20.70.30.60.60.30.4   160.20.20.90.71110.70.50.30.20.20.20.60.20.80.70.90.50.50.4   150.20.31111.211.10.80.30.20.20.20.50.30.60.60.80.70.60.5   140.20.4111.11.11.11.10.60.30.40.40.20.70.50.90.70.40.90.80.3   130.20.20.91.11.21.21.11.10.60.30.50.30.20.40.30.710.71.20.80.4   120.20.30.40.91.111.11.10.70.40.40.40.30.50.50.81.10.81.10.90.3   110.30.30.51.21.21.111.20.90.50.60.40.60.60.30.61.20.810.80.5   100.30.50.91.11.111.210.80.70.50.60.40.50.411.30.90.910.8   90.30.50.61.11.2111.10.90.40.40.50.50.80.60.910.50.80.80.9   80.40.50.411.11.210.90.70.50.60.30.60.40.6110.60.910.7   70.30.50.81.11.110.80.70.70.40.50.40.40.50.41.11.30.710.70.6   60.30.50.91.110.70.70.40.60.40.40.30.50.50.30.91.20.810.80.4   50.20.30.60.90.80.80.60.30.40.50.40.50.40.20.50.51.30.610.90.3   40.20.30.30.70.60.60.40.20.30.50.80.80.30.20.20.81.30.90.80.80.4   30.20.30.30.60.30.40.30.20.20.30.60.40.30.20.40.30.80.60.70.40.4   20.20.30.40.40.20.20.20.30.20.20.20.20.20.20.20.50.70.40.40.30.3   10.20.20.30.20.20.30.20.20.20.20.20.10.20.40.30.60.50.30.30.30.2   00.20.20.20.20.20.20.20.20.20.20.20.20.20.20.40.70.40.20.40.50.3];   z=A(2:end,2:end)   [x,y]=meshgrid(0:20,20:-1:0);   surf(x,y,z)   xlabel('x')   [X,Y]=meshgrid(0:0.3:20,20:-0.3:0);   Z=interp2(x,y,z,X,Y,'spline')   figure   surf(X,Y,Z)
最新更新
优秀数学推荐
PC端 | 移动端 | mip端
字典翻译(zidianfy.com)汇总了汉语字典,新华字典,成语字典,组词,词语,在线查字典,中文字典,英汉字典,在线字典,康熙字典等等,是学生查询学习资料的好帮手,是老师教学的好助手。
声明:本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
电话:  邮箱:
Copyright©2009-2021 字典翻译 zidianfy.com 版权所有 闽ICP备2022014709号-7
lyric 頭條新聞