Terrain Generator
R2026bGenerate terrain elevation heightmap for marine environment simulation
Since R2026b
Libraries:
Aerospace Blockset Maritime Applications Library /
Environment
Description
Add-On Required: This feature requires the Aerospace Blockset Maritime Applications Library add-on.
The Terrain Generator block uses noise functions to generate heightmaps for marine terrains such as:
Diamond-square— Create fractal terrain heightmap with pronounced ridges and valleys.Perlin noise— Create heightmap with smooth, continuous terrain with gradual elevation changes.
To fine tune the overall terrain appearance, change the block frequency, number of octaves, amplitude, and roughness scaling factor. The terrain appearance is static, unlike wave spectrums, which vary with time.
You can use the block in scenario simulation, where the Terrain Generator block initializes a terrain map for visualization.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"maritime_support_library/Environment/Terrain Generator"
Example: add_block("maritime_support_library/Environment/Terrain Generator","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Version History
Introduced in R2026b
