MATLAB: How to convert matrix equations to system equation of element in row of matrix in matlab live script

arrayconvertMATLABmatrixmatrix arraysymbolicSymbolic Math Toolboxthx_alot4help

convert to
a+a = 1
2*b+d =2
c+b=3
2*d+3*c =4

Best Answer

syms a b % example
A = [a b; b a].' % those matrices should be transposed
B = [a b; b a].'
C = [1:2; 3:4].'
A(:) + B(:) == C(:)
Related Question