matlab 中解二元非线性方程组问题,fsolve高手帮帮忙
functionF=myfun(x);Isc=11;Voc=26.9;Vmpp=21.6;Impp=10.2;ns=1;Vt=13.8;Rs=x(1);Rsh=x(2);...
function F=myfun(x);
Isc=11;
Voc=26.9;
Vmpp=21.6;
Impp=10.2;
ns=1;
Vt=13.8;
Rs=x(1);
Rsh=x(2);
F=[(Isc*Rsh+Isc*Rs-Voc)*exp((Vmpp+Impp*Rs-Voc)/(ns*Vt))-(Isc-Impp)*(Rs+Rsh)-Vmpp;(Voc-Isc*(Rs+Rsh))/(ns*Vt)*exp(((Vmpp+Impp*Rs-Voc)/(ns*Vt)))-(Impp*(1+Rs+Rsh)-Vmpp)/(Impp*Rs-Vmpp)];
y=fsolve('myfun',[1,1])
fsolve stopped because the problem appears regular as measured by the gradient,
but the vector of function values is not near zero as measured by the
default value of the function tolerance.
没结果咋回事啊?求教啊! 展开
Isc=11;
Voc=26.9;
Vmpp=21.6;
Impp=10.2;
ns=1;
Vt=13.8;
Rs=x(1);
Rsh=x(2);
F=[(Isc*Rsh+Isc*Rs-Voc)*exp((Vmpp+Impp*Rs-Voc)/(ns*Vt))-(Isc-Impp)*(Rs+Rsh)-Vmpp;(Voc-Isc*(Rs+Rsh))/(ns*Vt)*exp(((Vmpp+Impp*Rs-Voc)/(ns*Vt)))-(Impp*(1+Rs+Rsh)-Vmpp)/(Impp*Rs-Vmpp)];
y=fsolve('myfun',[1,1])
fsolve stopped because the problem appears regular as measured by the gradient,
but the vector of function values is not near zero as measured by the
default value of the function tolerance.
没结果咋回事啊?求教啊! 展开
1个回答
展开全部
追问
答案还是不正确,你试试两个方程的左右两边结果不相等
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询