How to make a sequence number?

Hello,
i have a number 6, i wann get it to the sequence number. it's like an example with randperm(6), but i want it to sequence not randperm, so the result should be 1 2 3 4 5 6.
How can i do this? please help me.thanks in advance

 Akzeptierte Antwort

Weitere Antworten (1)

David Sanchez
David Sanchez am 23 Mai 2013

2 Stimmen

n=6;
my_seq=linspace(1,n,n)
my_seq =
1 2 3 4 5 6

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by