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

Online Help

All Products    Maple    MapleSim


Terrain

  

ExportData

  

export terrain data points to an Excel file

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

ExportData(T, filedir, opts)

T:-ExportData(filedir, opts)

Parameters

T

-

Terrain; the Terrain object

filedir

-

string; folder directory to export the Excel file

opts

-

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

Options

overwrite = truefalse

Specifies the interpolation option. Whether or not to overwrite the existing file with the same name in the same directory. The default is true.

Description

The ExportData method exports terrain data points to an Excel file. The first column contains the values for the first axis, the second row contains the values for the second axis, the remaining cells are the values for the up direction.

Examples

withTires:

Define the terrain equation.

eq0.1tanhx5tanhx30:

Generate a Terrain object using the defined equation. Select the z-axis as the up direction. The order of the two independent variables is [x,y]. Assign the range for x to be -10 to 100, and for y to be -10 to 10. Also, assign 50 grid points for the x-axis and 10 for the y-axis. Finally, set the title to myTerrain.

terrainGenerateTerraineq,10..100,10..10,50,10,up_direction=z,title=myTerrain:

Plot the generated terrain.

terrain:-Plot

Export the terrain data points.

terrain:-ExportDataFileTools:-TemporaryDirectory

true,/tmp/mpldoc3/myTerrain.xlsx

(1)

See Also

Terrain

Tires