Method on @sym: isscalar (x)

Return true if this symbolic expression is a scalar.

Example:

s = sym(1);
v = sym([1 2 3]);
isscalar(s)
  ⇒ 1
isscalar(v)
  ⇒ 0

See also: @sym/size, @sym/numel, @sym/isvector.

Package: symbolic