hsmyy198712 发表于 2008-5-1 21:32

nlinfit 的错误,求解答

我写了一段如下的代码:<br/>wcdma = ;<br/>wx = ;<br/><br/>myfun = inline('A(2) / (1 + (A(2) / A(1) -1)* exp(A(3) * t ))','t','A');<br/><br/>A = nlinfit(wx,wcdma,myfun,[ 0 ,0 ,0 ]);<br/><br/>a = A(1);<br/><br/>b = A(2);<br/><br/>c = A(3);<br/><br/><br/>报错为:<br/><br/>??? Error using ==&gt; nlinfit at 114<br/>The inline model function generated the following error:<br/>Error using ==&gt; inlineeval at 15<br/>Error in inline expression ==&gt; A(2) / (1 + (A(2) / A(1) -1)* exp(A(3)<br/>* t ))<br/>??? Error using ==&gt; mrdivide<br/>Matrix dimensions must agree.<br/><br/>Error in ==&gt; r6 at 6<br/>A = nlinfit(wx,wcdma,myfun,[ 0 ,0 ,0 ]);<br/><br/>不知道有没有高人帮我解答……<br/>
页: [1]
查看完整版本: nlinfit 的错误,求解答