Unseeded random noise in Simulink

조회 수: 10 (최근 30일)
Joshua
Joshua 2014년 10월 16일
댓글: Jon Boerner 2014년 10월 17일
Hi, I'm wondering if there is a way to remove seeding from the white noise generator in Simulink. I have a Simulink model that I am running multiple times with external input from the workspace. The model itself contains some intrinsic noise that I would like to be different for each run. Is this possible? Thanks!

채택된 답변

Jon Boerner
Jon Boerner 2014년 10월 17일
You cannot remove the seed option, but you can use a random seed. For example:
This should give you a different output every time you run the model.
  댓글 수: 2
Sean de Wolski
Sean de Wolski 2014년 10월 17일
Unless the rng is reset somewhere else in case rand(1) is deterministic.
Jon Boerner
Jon Boerner 2014년 10월 17일
Sean is right. There are times this does not work, so it is worth double checking the output of this block in your model every once-in-a-while.

댓글을 달려면 로그인하십시오.

추가 답변 (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