Method on @symfun: numel (f)

Number of elements in a symfun.

This behaves differently than for @sym:

syms x y
f(x, y) = [1 x; y 2];

numel(f)
  ⇒ 1

See also: @sym/numel.

Package: symbolic