MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   求助:matlab生成自定义概率密度的随机数 (https://www.labfans.com/bbs/showthread.php?t=9547)

samehere 2009-08-28 20:26

求助:matlab生成自定义概率密度的随机数
 
想生成一个随机数(取值区间是10,20,30,40,50,60),概率密度分布如下

p(x)=0.1 x=10
p(x)=0.1 x=20
p(x)=0.1 x=30
p(x)=0.2 x=40
p(x)=0.2 x=50
p(x)=0.3 x=60

请问使用matlab应该如何实现


所有时间均为北京时间。现在的时间是 14:42

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.