Solving multiple equations through an array
显示 更早的评论
I am trying to solve multiple equations in an array but am getting too many answers for one equation.
>> P = sym('P', [1 3]);
>> V = sym('V', [1 3]);
>> R_ON = [1 2 3];
>> P = ((200-V)./100).*V==(V.^2)./R_ON
P =
[ -V1*(V1/100 - 2) == V1^2, -V2*(V2/100 - 2) == V2^2/2, -V3*(V3/100 - 2) == V3^2/3]
>> solve(P).V1
ans =
0
0
200/101
200/101
0
0
200/101
200/101
Why is the solution giving me repeated values and 8 solutions? There should only be the two solutions, 0 and 200/101. Thanks in advance!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


