FUNCTION REFERENCE
colon
Colon operator as a function.
Colon operator as a function.
Syntax
r = colon(a, b)Syntax
r = colon(a, s, b)colon(a,b) is a:b and colon(a,s,b) is a:s:b, a 1-by-n row. An empty range is 1-by-0.
colon('a','e') is the text 'abcde'; a complex operand contributes its real part.
Example
colon(1, 2, 7) % [1 3 5 7]Differences from MATLAB: no integer or single classes; non-scalar operands use their
first element.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.