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=12048)

pbmn 2010-09-05 00:34

新手请教一个问题
 
我想积分正态分布的概率密度函数(pdf)和联合密度函数(cdf)的积,遇到些问题,总是报错,请大侠帮忙看看。
我的程序是
syms y
int(normpdf(y,0,1)*normcdf(y),y,-inf,inf)
报错结果是
??? Input must be single or double.

Error in ==> erfc at 21
y = erfcore(x,1);

Error in ==> normcdf at 68
p = 0.5 * erfc(-z ./ sqrt(2));

谢谢。


所有时间均为北京时间。现在的时间是 11:17

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