fsolve input

2 次查看(过去 30 天)
R yan
R yan 2011-7-22
The fsolve( ) takes function with parameters of the form x(1),x(2).. I have quite long equations involving unknowns x and y. How can I give my equations as input?

采纳的回答

Walter Roberson
Walter Roberson 2011-7-23
Instead of using an anonymous function, use a real function that starts out with
y = x(2);
x = x(1); %make sure this is last
and then use your existing equations.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by