generating random samples in simulink with dynamic mean and variance
1 次查看(过去 30 天)
显示 更早的评论
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
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sources 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!