how to solve system of linear equations with unorganized unknowns?
古いコメントを表示
hi everybody. I have a system of n equations n unknowns and there are two forms of this system. in the first form the system of equations is in the form of A*X=Y. in the second form the system of equations is in the form of A*X=B*Y. A and B are the matrix of constant factors. some of the unknowns are in the matrix X and the others are in the matrix Y(X and Y are columns). so the problem is that unknowns are not in one matrix so they are unorganized. i can define unknowns as zero. if there is another way to define unknowns, please let me know. so how can i solve these systems? please guide me how to solve these systems and how to define unknowns? there are several ways to organize unknowns and put them in just one matrix but i want to know if there is any way to solve the system without organizing unknowns. if all the unknowns were in one matrix then it would be easy to solve the system with linsolve in matlab.
採用された回答
その他の回答 (1 件)
Omidreza Ghafarinejad
2015 年 3 月 24 日
0 投票
2 件のコメント
John D'Errico
2015 年 3 月 24 日
Errors on that order of magnitude are often the result of how you input the data. That is, if you entered the numbers to that precision, expect errors in the last digit or so, since the true numbers that were stored in MATLAB were not exactly those values.
As I said above, for the A*X=Y problem, just use B as an identity matrix, then you can solve it the same way.
Omidreza Ghafarinejad
2015 年 3 月 24 日
編集済み: Omidreza Ghafarinejad
2015 年 3 月 24 日
カテゴリ
ヘルプ センター および File Exchange で Operating on Diagonal Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!