Why does SOLVE return an incorrect result?
Show older comments
Why does SOLVE return an incorrect result?
Specifically,
> syms I01 I1 V R ts tau I2 I02 V1 V2 di1 di2 L
> f1=R*I1+L*di1-V1;
> f2=R*I2+L*di2-V2;
> [R,L]=solve(f1,f2,'R,L');
> Rsym=simple(R);
> Lsym=simple(L);
After checked by hand, the solution for R and L is exchanged, and thus incorrect although the answer is correct had the it not been exchanged.
Is this a bug?
Accepted Answer
More Answers (0)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!