Nonlinear equation returning Empty sym: 0-by-1
显示 更早的评论
syms B R
eqn1 = B/Jeq + R/La == 183.9;
eqn2 = (Ka*Ke + R*B)/(Jeq*La) == 4505;
eqn3 = B > 0;
eqn4 = R > 0;
[B1,R1] = solve([eqn1,eqn2,eqn3,eqn4],[B,R])
%Then it returns:
%B1 =
%Empty sum: 0-by-1
%R1 =
%Empty sum: 0-by-1
Edit: My equations are unable to be solved with those constraints because my initial equations are wrong. However, with Walter Roberson's solutions in this thread, I would now be able to solve it otherwise.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!













