:
: creates a numeric array from x to y.
Syntax
a = x : y
Operands and Result
| x | y | a |
|---|---|---|
SCAL | SCAL | numeric array |
Notes
- The step size is
1ifx < y. - The step size is
-1ifx > y. - This differs from MATLAB, where
x:yalways uses a positive step unless an explicit increment is given.
Current source basis:
op_colon.html