colon

Core Math

Explicit colon operator. Creates a range vector.

Syntax

colon(start, stop)
colon(start, step, stop)

Examples

colon(1, 5)
▶ Run
colon(0, 0.5, 2)
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.