How do I even do this? Inverse Model Matrix

2 ビュー (過去 30 日間)
YoloSwaggins
YoloSwaggins 2015 年 9 月 9 日
編集済み: James Tursa 2015 年 9 月 9 日
So I solved a system of equations which had three different equations and 3 different variables (x,y,z) in MATLAB which was easy. Now the next question is asking me to
"Solve the equation systems of Problem 5 using the inverse matrix model and MATLAB’s inv command."
How do I do that?

回答 (1 件)

James Tursa
James Tursa 2015 年 9 月 9 日
編集済み: James Tursa 2015 年 9 月 9 日
To solve the linear system A*x = b for x with matrix A and column vector b known, using the inv function:
x = inv(A) * b;
I am assuming this will be part of an assignment to compare results for various methods, since backslash is the recommended method for this. E.g.,
x = A \ b;

カテゴリ

Help Center および File ExchangeNumerical Integration and Differential Equations についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by