PDA

查看完整版本 : [求助]如何用pdf函数画出均匀,指数和weibull分布的概率密度函数图


volkl
2008-11-24, 01:13
如何画出均匀,指数和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
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)