Method on @sym: ipermute (B, iperm)

Invert a permutation the indices of a symbolic array.

Example:

A = sym([1 2 pi; 4 5 6]);
B = permute(A, [2 1]);
ipermute(B, [2 1])
  ⇒ ans = (sym 2×3 matrix)
      ⎡1  2  π⎤
      ⎢       ⎥
      ⎣4  5  6⎦

See also: @sym/permute.

Package: symbolic