how to create random combination?

조회 수: 14 (최근 30일)
Abdul
Abdul 2014년 2월 23일
답변: Azzi Abdelmalek 2014년 2월 23일
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
the cyclist
the cyclist 2014년 2월 23일
You haven't been clear or complete enough in your description. I can't guess what you want. Please add more details.

댓글을 달려면 로그인하십시오.

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 23일
repmat(randperm(3),1,7)

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by