フィルターのクリア

How to change a initial Seed in during Simulink?

4 ビュー (過去 30 日間)
Thang Vu
Thang Vu 2012 年 12 月 3 日
Hello,
I am using random interleavers and deinterleavers in a Simulink progam. I want to change the initial Seed of the interleaver every 100 data frames. If I take the Seed from workspace, it remains constant all the simulation. I tried to create a random number in that simulink, store it to workspace and re-call it from the workspace to the interleaver block, but it did not work.
Can any body know how to come up with my problem? Thanks alot. Thang

回答 (1 件)

Ryan G
Ryan G 2012 年 12 月 3 日
The random intervleaver is likely not tunable during simulation. In other words, you have to stop, change the seed, then hit play again to change the seed.
To workaround this you can save and restore the simulation state. You can do this from a MATLAB script as well.

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by