Is it possible to use another Simulink block that will feed the seed number to Random Source block in Signal Processing Blockset 6.5 (R2007a)?

조회 수: 1 (최근 30일)
I am using the Random Source block in the Signal Processing Blockset and I would like to control the seed number in that block. I would like to use another Simulink block that will feed the seed number to this block.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 9월 4일
There is no block available in Signal Processing Blockset 6.5 (R2007a) that can be used to feed the seed number to Random Source block in Signal Processing Blockset.
As a workaround, one may use the RAND function inside an Embedded MATLAB Function. It is also possible to feed the seed at the input of the Embedded MATLAB function and use the RAND or RANDN function in the Embedded MATLAB function. See the attached model for an example implementation of this.
Note that the sequence of random numbers produced by the Random Source block in the Signal Processing Blockset and by the RAND function inside the Embedded MATLAB Function may differ, even if the same seed is used.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by