Solving multiple equations through an array
Show older comments
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!
Accepted Answer
More Answers (0)
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

