matlab 正态分布
来源:百度知道 编辑:UC知道 时间:2024/07/04 15:21:07
如何用matlab解
N(x)+y=1/2;
N(y)+x=1/2
N(.)是正态分布
N(x)+y=1/2;
N(y)+x=1/2
N(.)是正态分布
%by dynamic
%see also http://www.matlabsky.com
%2009.2.19
%
fun=@(x)[normpdf(x(1))+x(2)-0.5
normpdf(x(2))+x(1)-0.5];
[x,fval]=fsolve(fun,rand(2,1))
Optimization terminated: first-order optimality is less than options.TolFun.
x =
0.1032
0.1032
fval =
1.0e-007 *
-0.4839
-0.7019
所以x=0.1032
y=0.1032