@fill |

Vector initialized from a list of values.

Syntax: @fill(n1[, n2, n3, ...])

n#: number

Return: vector

Returns a vector containing the elements specified by the arguments to the function. The vector will have length equal to the number of arguments. The maximum number of arguments is 96.

Examples

vector v = @fill(1, 4, 6, 21.3)

Will return a 4 element vector, where the first element is set to 1, the second to 4, the third to 6 and the fourth to 21.3.

vector pvals = @cnorm(@fill(-1.65, -1, .5, 1.76))

evaluates the cumulative normal distribution function for the vector of values {-1.65, -1.0, 0.5, 1.76}.

Cross-references

See also
@sfill.