Method on @sym: isconstant (x)

Indicate which elements of symbolic array are constant.

Example:

syms x y
A = [x 1 pi; 2 2*y catalan()]
  ⇒ A = (sym 2×3 matrix)
     ⎡x   1   π⎤
     ⎢         ⎥
     ⎣2  2⋅y  G⎦

isconstant (A)
  ⇒ ans =
      0  1  1
      1  0  1

See also: @sym/isallconstant, @sym/symvar, findsymbols.

Package: symbolic