查看单个帖子
旧 2008-12-17, 14:09   #2
zhoumath
初级会员
 
注册日期: 2008-12-17
年龄: 43
帖子: 2
声望力: 0
zhoumath 正向着好的方向发展
默认 回复: [求助]如何用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)
zhoumath 当前离线   回复时引用此帖