Hi All, how can I build a random secuence to obtain this values {-3,-1,1,3}?

답변 (1개)

Rick Rosson
Rick Rosson 2014년 10월 22일
편집: Rick Rosson 2014년 10월 22일

0 개 추천

x = 2*randi([0 3],100,1) - 3;

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

질문:

2014년 10월 22일

편집:

2014년 10월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by