Documentation

Permute Dimensions

Rearrange dimensions of multidimensional array dimensions

Library

Math Operations

Description

The block reorders the elements of the input signal so that they are in the order you specify in the Order parameter.

Data Type Support

This block accepts signals of any data type that Simulink® supports, including fixed-point, enumerated, and nonvirtual bus data types. Output must be the same data type as the input.

You can use an array of buses as an input signal to a Permute Dimensions block. For details about defining and using an array of buses, see Combine Buses into an Array of Buses.

For more information, see Data Types Supported by Simulink in the Simulink documentation.

Parameters

Order

Specify the permutation order to apply to the dimensions of the input signal. This parameter is a vector of elements, where the number of elements in the vector is the number of dimensions of the input signal.

Characteristics

Data Types

Double | Single | Boolean | Base Integer | Fixed-Point | Enumerated | Bus

Sample Time

Inherited from driving block

Direct Feedthrough

Yes

Multidimensional Signals

No

Variable-Size Signals

Yes

Zero-Crossing Detection

No

Code Generation

Yes

See Also

Math Function (transpose), permute (in the MATLAB® reference documentation)

Introduced in R2007a

Was this topic helpful?