WOLFRAM SYSTEM MODELER
'linspace()'linspace() |
SystemModel["ModelicaReference.Operators.'linspace()'"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Return Real vector with equally spaced elements
linspace(x1, x2, n)
Returns a Real vector with n equally spaced elements, such that
v[i] = x1 + (x2-x1)*(i-1)/(n-1) for 1 ≤ i ≤ n.
It is required that n ≥ 2. The arguments x1 and x2 shall be Real or Integer scalar expressions.
Real v[:] = linspace(1,7,4); // = {1, 3, 5, 7}