using fsolve function to solve for 2 unknowns
古いコメントを表示
I am trying to use the fsolve funstion to solve for 2 unknowns, the3 and theta 4, and I am not sure how
in an .m file I have this:
function F = problem_one(theta)
theta3 = theta(1);
theta4 = theta(2);
f = (2*cosd(30)) + (7*cosd(theta3)) - (9*cosd(theta4)) -6;
g = (2*sind(30)) + (7*sind(theta3)) - (9*sind(theta4));
end
and in a different script file i have this:
x0 = [80,110];
sol = @fsolve[problem_one,x0];
it tells me that my problem_one variable in unrecognized, and also a failure in the inital function objective evaluation. Please help
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Lengths and Angles についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!