random integer generator in matlab simulink and how to set parametres ?

조회 수: 2 (최근 30일)
ofdma_matlab
ofdma_matlab 2011년 7월 22일
suppose i wanna generate random data from 0 to 3 (ie, qpsk data) in matlab simulink unsing random integer generator. output should be vector form like [0 1 1 2 0 3 1 2] how can i do this using simulink and how to set parameters for that .
thanks in advance.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2011년 7월 22일
You can use the "Uniform Random Number" block from "Source" library. Set Min to be 0 and Max to be 3. It is not integer so you need to add a "Quantizer" block from the "Discontinuities" library. Set the "Quantization interval" parameter to be 1.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by