主题:高手来帮帮忙,看看那错了?
我是初学者,编了个程序,解方程,一直提示有错误,高手们帮着看看哪错了[em4][em4][em4][em4][em4]
OPT=optimset;OPT.LargeScale='off';
f=inline('[24.5-p(1)*(1-1/((p(2)*100+p(3))^2+p(4)))*(2355^2)',' 3.37-p(1)*(1-1/((p(2)*38+p(3))^2+p(4)))*(1076^2)','29-p(1)*(1-1/((p(2)*70+p(3))^2+p(4)))*(2573^2)','38-p(1)*(1-1/((p(2)*100+p(3))^2+p(4)))*(2913^2)]','p');
[k,a,b,c]=fsolve(f,[4.6e-5;0.135;-0.21;1],OPT)
错误提示:Not enough inputs to inline function.
谢谢指点呐!!!
OPT=optimset;OPT.LargeScale='off';
f=inline('[24.5-p(1)*(1-1/((p(2)*100+p(3))^2+p(4)))*(2355^2)',' 3.37-p(1)*(1-1/((p(2)*38+p(3))^2+p(4)))*(1076^2)','29-p(1)*(1-1/((p(2)*70+p(3))^2+p(4)))*(2573^2)','38-p(1)*(1-1/((p(2)*100+p(3))^2+p(4)))*(2913^2)]','p');
[k,a,b,c]=fsolve(f,[4.6e-5;0.135;-0.21;1],OPT)
错误提示:Not enough inputs to inline function.
谢谢指点呐!!!