| 查看: 178 | 回复: 0 | |||
| 当前主题已经存档。 | |||
[交流]
【求助】一个简单的Matlab错误,请帮忙解决
|
|||
|
>> w=inline('a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r1;a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r2','theta','a1','a2','r1','r2') w = Inline function: w(theta,a1,a2,r1,r2) = a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r1;a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r2 >> opt=optimset('display','off'); >> z=fsolve(w,[pi/6 pi/6],opt,1,2,1.8,2.1)*180/pi ??? Error using ==> inlineeval Error in inline expression ==> a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r1;a1*cos(theta(1))+a2*cos(theta(1)+theta(2))-r2 ??? Error: Unexpected MATLAB expression. Error in ==> inline.feval at 34 INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr); Error in ==> fsolve at 180 fuser = feval(funfcn{3},x,varargin{:}); 请高手帮我看看错在哪里,谢谢 [ Last edited by laizuliang on 2008-8-15 at 23:58 ] |
» 猜你喜欢
售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急
已经有9人回复
售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急
已经有10人回复
售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急
已经有9人回复
售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急
已经有7人回复
售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急
已经有7人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有11人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有7人回复
售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急
已经有11人回复
售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急
已经有8人回复
售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急
已经有8人回复










回复此楼