How to create a cell array with natural numbers up to 1000?

5 views (last 30 days)
I know it is very simple, but I don't know how to do it. I have been doing it in a very clumsy way. Can any one tell me how to do it elegantly?
Thanks,
Jennifer

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 23 Jul 2015
num2cell(1:1000)

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!