Main Content

Permute Array Dimensions

This example shows how to use the Permute Dimensions block to permute the first and third dimensions of a 3-by-4-by-5 input array.

When you set theOrderparameter to[3,2,1], the block permutes the first and third dimensions, and outputs a 5-by-4-by-3 array.