MATLAB: Solving a matrix equation

linear systemmatrix equationsolve matrix

I'm trying to solve the following matrix equation using MATLAB:
AU + UB = C
A, B, and C are known matrices and I want to solve for the matrix U. A and B are square, symmetric, and tridiagonal. Does anyone have advice on how to use MATLAB to efficiently solve this system? Thank you for any help in advance!

Best Answer

Look at 5.1.10 under
for a solution.
Enter
help kron
to get information on how to form the Kronecker tensor product in MATLAB.
Best wishes
Torsten.