Command Reference : Function Reference : Function Reference: G
  
 
@grid
Vector containing equally spaced grid of values.
Syntax: @grid(d1, d2, n)
d1: number
d2: number
n: integer
Return: vector
Returns a vector holding an arithmetic sequence of n elements. The initial element has value d1, the last element is d2, and there are equal increments between rows of the vector.
Examples
vector v1 = @grid(0, 3, 10)
creates V1, a 10-element vector with first element 0, last element 3, and equal increments between successive rows of the vector.
vector cdf1 = @cnorm(@grid(-2.0, 2.0, 401))
creates a 401-element vector of normal CDF ordinates evaluated at points from -2.0 to 2.0.
Cross-references
See also @seq and @range.