对数正太分布

x = (0:0.02:10);
y = lognpdf(x,0,10);
plot(x,y); 
grid;
xlabel('x'); ylabel('p')
hold on

 x1 = (0:0.02:10);
 y1 = normpdf(x1,0,1);
 plot(x1,y1); 
 grid;
 xlabel('x'); ylabel('p')
 hold off

 

posted @ 2013-12-02 14:39  夜雨阑珊  阅读(497)  评论(0编辑  收藏  举报