www.gusucode.com > map 案例源码 matlab代码程序 > map/DisplayTerrainDataAsMeshSurfaceAnd3DSurfaceExample.m

    %% Display Terrain Data as Mesh, Surface, and 3-D Surface
% 
%%
% Read SDTS DEM terrain data for Mount Washington.

% Copyright 2015 The MathWorks, Inc.

[Z, R] = sdtsdemread('9129CATD.DDF');
%% 
% View the terrain data as a mesh.
figure
mapshow(Z, R, 'DisplayType', 'mesh');
demcmap(Z)
%%
% View the terrain data as a surface.
figure
mapshow(Z, R, 'DisplayType', 'surface');
demcmap(Z)
%%
% View the terrain data as a 3-D surface.
view(3);
axis normal