Random secuence {-3,-1,1,3}
이전 댓글 표시
Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?
답변 (1개)
Rick Rosson
2014년 10월 22일
편집: Rick Rosson
2014년 10월 22일
x = 2*randi([0 3],100,1) - 3;
카테고리
도움말 센터 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!