Editor's Note: This file was selected as MATLAB Central Pick of the Week
Return a concatenation of multiple colon-intervals.
User provides left, step, and right bound.
>> mcolon([0 10],[1 2],[2 14])
ans = 0 1 2 10 12 14
Cite As
Bruno Luong (2026). Multiple-Colon (https://www.mathworks.com/matlabcentral/fileexchange/29854-multiple-colon), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions and Hypothesis Tests > Discrete Distributions > Poisson Distribution >
Tags
Acknowledgements
Inspired: Forecasting the FTSE 100 with high-frequency data: A comparison of realized measures
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.6.0.0 | Fix installation bugs |
||
| 1.5.0.0 | Various improved performance
|
||
| 1.4.0.0 | Fix an overflow bug for colon with integer types |
||
| 1.2.0.0 | Minor correction from Oleg's comments |
||
| 1.1.0.0 | Add optional MEX engine |
||
| 1.0.0.0 |
