Solve symbolic Sylvester-like equation
1 回表示 (過去 30 日間)
古いコメントを表示
I'm looking for a way to solve a symbolic Sylvester-like equation in MATLAB or MAPLE (or any other available tool). In particular, I have the following equation,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207929/image.png)
where, A has some parameters in it (like below). B is known and I want to solve for X as a function of a.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/207930/image.png)
0 件のコメント
回答 (1 件)
Torsten
2019 年 3 月 12 日
syms a x11 x12 x21 x22 b11 b12 b21 b22
A=[a+sym('1'), sym('2'); sym('3'),sym('1')];
X=[x11,x12;x21,x22];
B=[b11,b12;b21,b22];
[solx11 solx12 solx21 solx22] = solve([A*X+X*A==B],[x11 x12 x21 x22])
3 件のコメント
madhan ravi
2019 年 3 月 12 日
Ah (typo) , meant to say sym() can be used directly for the whole matrix instead of applying to each values of a matrix.
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!