To generate a series with n numbers on and n numbers off
1 view (last 30 days)
Show older comments
I want to generate a series starting with natural number n. First n numbers are retained, next n numbers are removed and so on.
e.g if n is 4 then [4,5,6,7, 12,13,14,15, 20,21,22,23, ....]
similarly if n is 8 then [8,9,10,11,12,13,14,15, 24, 25, 26,27,28,29,30,31,....]
Any help will be appreciated
0 Comments
Answers (2)
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!