Method on @sym: divisors (x)

Get divisors of integer.

Example:

x = sym(150);
y = divisors(x)
  ⇒ y = (sym) [1  2  3  5  6  10  15  25  30  50  75  150]  (1×12 matrix)

Package: symbolic