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 ==> nlinfit at 114<br/>The inline model function generated the following error:<br/>Error using ==> inlineeval at 15<br/>Error in inline expression ==> A(2) / (1 + (A(2) / A(1) -1)* exp(A(3)<br/>* t ))<br/>??? Error using ==> mrdivide<br/>Matrix dimensions must agree.<br/><br/>Error in ==> r6 at 6<br/>A = nlinfit(wx,wcdma,myfun,[ 0 ,0 ,0 ]);<br/><br/>不知道有没有高人帮我解答……<br/>
页:
[1]