Tires
ImportData
generate a Terrain object from a spreadsheet
Calling Sequence
Parameters
Options
Description
Examples
ImportData(filepath, opts)
filepath
-
opts
(optional) equation(s) of the form option = value; specify options for the ImportData command
preprocess = truefalse
True causes the rows and columns of the matrix read from the spreadsheet to be sorted numerically by the content of the first column and first row, respectively. The default is true.
up_direction = "x", "y", or "z"
Specifies which direction is up. The default is "z".
The ImportData method reads data from a spreadsheet and uses it to create and return a Terrain object.
The filepath parameter specifies the path to a spreadsheet.
with⁡Tires:
Assign the path to the spreadsheet that defines the terrain data points.
filepath≔FileTools:-JoinPath⁡kernelopts⁡toolboxdir=TireComponentLibrary,data,examples,terrain.xlsx:
Import the data and use it to assign a Terrain object.
terrain≔ImportData⁡filepath,up_direction=z
terrain≔Terrain⁡
Plot the terrain.
terrain:-Plot⁡
See Also
Terrain
Download Help Document