@sym
: reshape (x, n, m) ¶@sym
: reshape (x, [n, m]) ¶Change the shape of a symbolic array.
Examples:
A = sym([1 2 3; 4 5 6]) ⇒ A = (sym 2×3 matrix) ⎡1 2 3⎤ ⎢ ⎥ ⎣4 5 6⎦
reshape(A, [3 2]) ⇒ ans = (sym 3×2 matrix) ⎡1 5⎤ ⎢ ⎥ ⎢4 3⎥ ⎢ ⎥ ⎣2 6⎦
reshape(A, 1, 6) ⇒ ans = (sym) [1 4 2 5 3 6] (1×6 matrix)
See also: @sym/size, @sym/resize.
Package: symbolic