Problem of generating random number from Inverse-Wishart distribution with iwishrnd

1 次查看(过去 30 天)
Hi to all, I find an interesting phenomenon in using iwishrnd to generate random numbers from Inverted-Wishart distribution. In my laptop, everything is ok. However, when I move my code to a server (OS: linux), occassionally it cause errors since matlab detects that the scale matrix is not positive definite. Could anyone tell me the possible reason and solution? Thanks!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by