MATLAB: Parametric matrix equivalence solution

tag1

"I have two separate matrices A and B, as an example in the form of A=[a+b, a; b, a+b] and B=[x, y; x+y, x]. In case of A=B, how can I find "a" and "b" according to "x" and "y", which are all parametric? Is there any function already defined in MATLAB to solve this? If there's not, how can I define one? Thanks alot"

Best Answer

You have a system of equalities. 4 of them. In your example they are linear, but since it was just an example, I cannot know.
Use the symbolic toolbox, however, it will likely fail to find an exact solution, since there are 4 equations in only 2 unknowns. An over-determined system like this will usually not have an exact solution.
John
Related Question