solve问题
function f=fun(p)global L1 L2 L3 L4 cta
f=[L1*cos(cta)+L2*cos(p(1))-L3*cos(p(2))-L4;
L1*sin(cta)+L2*sin(p(1))-L3*sin(p(2))];
end
p=fsolve(@fun,p,optimset('display','off'));
下面的p(1),p(2)由上面的fsolve函数求出,但下面一直缺失变量问题~
solve(‘-L2*sin(p(1))*w2+L3*sin(p(2))*w3-w1*L1*sin(cta)’,
’L2*cos(p(1))*w2-L3*cos(p(2))*w3+w1*L1*cos(cta)’)
??? solve(‘-L2*sin(p(1))*w2+L3*sin(p(2))*w3-w1*L1*sin(cta)’,
|
Error: Missing variable or function.
页:
[1]