How to separate a single variable from other variables in an equation ?
5 ビュー (過去 30 日間)
古いコメントを表示
I have a system of linear equations written as follow : 10X-Y+2Z=6 , -X+11Y-Z=25, 2X -Y +10Z=-11. I want to separate X from its coefficient in eq. 1 , Y in eq 2 and Z in eq 3 so that eq 1 becomes X=Y/10 - Z/5 +3/5 and eq 2 as Y = X/11 + Z/11 + 25/11 and eq 3 as Z = -X/5 +Y/10 - 11/10. If there are 4 equations then the fourth variable e.g. L will be separated like the previous equations. Please tell me a way to do the above in MATLAB.
2 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 11 月 23 日
編集済み: Azzi Abdelmalek
2014 年 11 月 23 日
syms X Y Z
X1=solve(10*X-Y+2*Z==6,X)
Y1=solve(-X+11*Y-Z==25,Y)
Z1=solve(2*X -Y +10*Z==-11,Z)
その他の回答 (0 件)
参考
カテゴリ
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!