expand intervals vol.3 - MATLAB Cody - MATLAB Central

Problem 2561. expand intervals vol.3

Difficulty:Rate

This is the next problem after 2528 and 2560. It is a more general case, when bounds creates intersections between intervals. Description changes as follow:

Given a row vector of an even number of scalars. Each pair create bounds of an interval but their occurence may vary. Return a row vector which consists of all the integers, ordered, non repeated, within these intervals (union of integer intervals).

See also problem 1986

Solution Stats

18.24% Correct | 81.76% Incorrect
Last Solution submitted on Feb 18, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers72

Suggested Problems

More from this Author40

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!