ImportData - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Tires

  

ImportData

  

generate a Terrain object from a spreadsheet

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

ImportData(filepath, opts)

Parameters

filepath

-

 

opts

-

(optional) equation(s) of the form option = value; specify options for the ImportData command

Options

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".

Description

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.

Examples

withTires:

Assign the path to the spreadsheet that defines the terrain data points.

filepathFileTools:-JoinPathkernelopts'toolboxdir'=TireComponentLibrary,data,examples,terrain.xlsx:

Import the data and use it to assign a Terrain object.

terrainImportDatafilepath,'up_direction'=z

terrainTerrain

(1)

Plot the terrain.

terrain:-Plot

See Also

Terrain

Tires