how to create random combination?

12 Ansichten (letzte 30 Tage)
Abdul
Abdul am 23 Feb. 2014
Beantwortet: Azzi Abdelmalek am 23 Feb. 2014
How to create random combination of three integer of length 21. for example ans=1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 and next time answer should be in random order.
  1 Kommentar
the cyclist
the cyclist am 23 Feb. 2014
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 23 Feb. 2014
repmat(randperm(3),1,7)

Kategorien

Mehr zu Random Number Generation finden Sie in Help 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