Method on @sym: linspace (a, b)
Method on @sym: linspace (a, b, n)

Return a symbolic vector of equispaced points.

Examples:

h = linspace(sym(1), sym(2), 3)
  ⇒ h = (sym) [1  3/2  2]  (1×3 matrix)
h = linspace(sym(1), sym(10), 12)
  ⇒ h = (sym 1×12 matrix)
      ⎡   20  29  38  47  56  65  74  83  92  101    ⎤
      ⎢1  ──  ──  ──  ──  ──  ──  ──  ──  ──  ───  10⎥
      ⎣   11  11  11  11  11  11  11  11  11   11    ⎦

If n is omitted, a default value is used:

length(linspace(sym(pi)/2, sym(pi)))
  ⇒ 100

See also: @sym/logspace, @sym/colon.

Package: symbolic