Writing an number array in specific format

1 view (last 30 days)
Hi,
How can I write a number array like this below in MATLAB?
aa= 1 2 3 5 6 7 9 10 11 13 14 15...upto 10000
Thanks in advance.

Accepted Answer

James Tursa
James Tursa on 12 Mar 2016
aa = 1:10000;
aa(4:4:end) = [];

More Answers (0)

Categories

Find more on Data Types 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!