DEM: Shaded relief image plot (digital elevation model)

Pretty shaded relief map as flat image.

Download
Download

You are now following this Submission

Cite As

François Beauducel (2026). DEM: Shaded relief image plot (digital elevation model) (https://nl.mathworks.com/matlabcentral/fileexchange/36380-dem-shaded-relief-image-plot-digital-elevation-model), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.6.0

- improves the colormap splitting between land and sea
- new option 'lakezmin' to limit lake detection

Download
2.2.0

- new option 'position' for tick labels
- major update thanks to mas Wiwit

Download
2.1.0

minor fix

Download
2.0.0

legend scale is now liberated from the figure colormap (thanks to Tomke Froechtenich's comment). No use of freezecolors needed to add other colormap plots.

Download
1.10.0

improve backward compatibility (strjoijn)

Download
1.9.0

- new options: 'km', 'watermark', 'fontsize', 'bordersize'
- improve legend colorbar
- all options now passed as param/value

Download
1.8.0

- improved light rendering (using surface normals instead of gradient)
- improved 'lake' detection algorithm
- new 'nancolor' option to set NaN color
- adds a length scale with 'dec' option
- minor code improvements

Download
1.7.0

- adds 'interp' option (fill the gaps)
- adds 'seacolor' colormap for negative elevations (bathymetry)

Download
1.6.0

- adds a 'lake' option
- minor bug correction

Download
1.5.0

now accepts row/column vectors for X and/or Y.

Download
1.4.0

- adds basemap-style axis in decimal or lat/lon modes
- adds elevation and distance scales

Download
1.3.0

- new landcolor.m colormap function
- new arguments to control colormap scaling
- median-style filters for light and colormap

Download
1.2.0

ZIP now contains landcolor.dat companion file.

Download
1.1.0

Optimizations: adds a decimation for large DEM grids.

Download
1.0.0

Download