Method on @sym: columns (x)

Return the number of columns in a symbolic array.

Example:

A = [1 2 sym(pi); 4 5 2*sym(pi)];
m = columns (A)
  ⇒ m =  3

See also: @@sym/rows, @@sym/size, @@sym/length, @@sym/numel.

Package: symbolic