MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]如何用pdf函数画出均匀,指数和weibull分布的概率密度函数图 (https://www.labfans.com/bbs/showthread.php?t=5448)

volkl 2008-11-24 01:13

[求助]如何用pdf函数画出均匀,指数和weibull分布的概率密度函数图
 
如何画出均匀,指数和weibull分布的概率密度函数图
Can you (re)produce a figure that compares the capacity of exponential distribution (mean 100), uniform distribution (from 0 to 200), and Weibull distribution (\beta=0.5, and \mu=50), as a function of collision probability constraint, assuming the percentage of idle time is 50% in all cases? If so, please send me the figure as well as the matlab code.
问题如上 谢谢各位

zhoumath 2008-12-17 14:09

回复: [求助]如何用pdf函数画出均匀,指数和weibull分布的概率密度函数图
 
clc;
clear;

x1=0:0.1:200;
y1=unifpdf(x1,0,200) ;
figure
plot(x1,y1)
axis([0,200,0,0.02])

x2=0.4:0.01:0.6;
y2=wblpdf(x2,0.5,50) ;
figure
plot(x2,y2)

x3=0:0.1:200;
y3=exppdf(x3,100) ;
figure
plot(x3,y3)


所有时间均为北京时间。现在的时间是 03:00

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