Method on @sym: any (x)
Method on @sym: any (x, dim)

Return true if any entries of a symbolic vector are nonzero.

Similar behaviour to the built-in any with regard to matrices and the second argument.

Throws an error if any entries are non-numeric.

Example:

any([0; sym(pi); 0])
  ⇒ ans = 1

See also: @sym/all.

Package: symbolic