Symbolic solution to a system of equations
Show older comments
Can Matlab solve a system of equations like a+b=c, b=2c symbolically for b and c? The output should be c=-a, b=-2a
Accepted Answer
More Answers (1)
David Hill
on 1 Apr 2020
syms a;
[1,-1;2,-1]\[a;0];
Categories
Find more on Assumptions 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!