finding values of a b c d

6 ビュー (過去 30 日間)
xoxox
xoxox 2018 年 2 月 6 日
編集済み: Stephen23 2018 年 2 月 6 日
Hi, Can anyone help me with this. I have no idea how to find the value of a b c d. PLEASE LOOK AT THE PICTURE! THANKS!
  1 件のコメント
Stephen23
Stephen23 2018 年 2 月 6 日
編集済み: Stephen23 2018 年 2 月 6 日
It is not required to use slow and complex symbolic operations. See Andrei Bobrov's answer for the fast, efficient, and simple numeric solution.

サインインしてコメントする。

採用された回答

Birdman
Birdman 2018 年 2 月 6 日
syms a b c d
eq=[5;-17;14;9]==[2 2 -7 2;3 2 -5 6;9 -8 1 -4;1 5 3 -1]*[a;b;c;d]
sol=solve(eq)
a=vpa(sol.a,4)
b=vpa(sol.b,4)
c=vpa(sol.c,4)
d=vpa(sol.d,4)
  3 件のコメント
Birdman
Birdman 2018 年 2 月 6 日
編集済み: Birdman 2018 年 2 月 6 日
Well, other way around is to take inverse of the matrix as stated in question and do the following:
syms a b c d
sol=[a;b;c;d]==vpa(inv([2 2 -7 2;3 2 -5 6;9 -8 1 -4;1 5 3 -1])*[5;-17;14;9],4)
By the way, it should work without an error if you have Symbolic Toolbox.
Or, just simply:
inv([2 2 -7 2;3 2 -5 6;9 -8 1 -4;1 5 3 -1])*[5;-17;14;9]
will give you a,b,c and d respectively.
xoxox
xoxox 2018 年 2 月 6 日
Yes Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2018 年 2 月 6 日
A = [2 2 -7 -2
3 2 -5 6
9 -8 1 -4
1 5 3 -1];
b = [5;-17;14;9]
abcd = A\b;
  1 件のコメント
xoxox
xoxox 2018 年 2 月 6 日
Yes Thank you!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by