generating random samples in simulink with dynamic mean and variance
이전 댓글 표시
Hello and thanks for reading. suppose i want to generate random samples from a normal distributions, but the mean and variance of the distribution are determined/calculated in each iteration of the simulation and change with time.
so i want a block which takes as inputs (mean, variance) and spits out (random number from a normal distribution with that mean and variance).
Thank you !
댓글 수: 3
dpb
2013년 7월 22일
So use the Random Number block w/ the inputs scaled as desired from whatever generates them...
Where are you having a specific problem?
pemfir
2013년 7월 22일
dpb
2013년 7월 22일
Yes. I've never used Simulink so I was presuming the parameters could be inputs from upstream blocks but I guess on re-reading the doc they're fixed parameters so your option is to scale the standardized z-value downstream instead. Same result, different way to get it.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Sources에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!