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 (2022). Multiple-Colon (https://www.mathworks.com/matlabcentral/fileexchange/29854-multiple-colon), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Forecasting the FTSE 100 with high-frequency data: A comparison of realized measures
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.