新手初次使用,请各位指点指点
我论文里有个三元非线性方程组要解,自己编了程序,运行不了,请指点指点,谢谢:function F=MAFUNC2(X)
% X(1)是a,X(2)是b,X(3)是c
n=4;
alpha=0.1;
F=[(1./(X(2).^1.5)-1./(X(3).^1.5)+3.*X(1).* normcdf(X(1)) .*(chi2cdf(X(3),n-1)-chi2cdf(X(2),n-1))./((X(3).^2.5).*(1-2.*normcdf(X(1)).*(chi2pdf(X(3),n-1))))
(2.*normcdf(X(1))-1).*(chi2cdf(X(3),n-1)-chi2cdf(X(2),n-1))+alpha-1;
chi2pdf(X(2),n-1)./( chi2pdf(X(3),n-1).* (X(3).^2.5))-1./ (X(2).^2.5)];
>> fsolve(@MAFUNC2,X0,optimset('fsolve'))
??? Error: File: C:\MATLAB6p5\work\MAFUNC2.m Line: 5 Column: 156
")" expected, "end of line" found.
Error in ==> C:\MATLAB6p5\toolbox\optim\fsolve.m
On line 161 ==> fuser = feval(funfcn{3},x,varargin{:});