Transpose - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Terrain

  

Transpose

  

transpose the terrain data points

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Transpose(T)

T:-Transpose()

Parameters

T

-

Terrain; the Terrain object

Description

The Transpose method transposes the terrain data points. As a result, the data points for the two axes of the terrain get swapped.

Examples

> 

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⁡

(1)
> 

terrain:-Plot⁡

Swap the x and y data points.

> 

terrain:-Transpose⁡:

Plot the terrain again and see the differences.

> 

terrain:-Plot⁡

See Also

Terrain

Tires