x = sym('x%d%d', [2 2]);
y = sym('y%d%d', [2 2]);
sol = solve([A==a*x+b*y, B==c*x-d*y]);
Xsol = [sol.x11, sol.x12; sol.x21, sol.x22]);
Ysol = [sol.y11, sol.y12; sol.y21, sol.y22]);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!