solving ax=b for x

3 ビュー (過去 30 日間)
Boss Man
Boss Man 2020 年 2 月 23 日
コメント済み: Rena Berman 2020 年 5 月 14 日
So i have a matrix involving summations
matrix a = [F sum(sinp) sum(cosp)
sum(sinp) sum(sin^2(p)) sum(sinpcosp)
sum(cosp) sum(sinpcosp) sum(cos^2(p)) ]
b= [ X Y Z]
c=[sum(a) sum(asinp) sum(acosp)
how would i include the summations in the matrix
and how would I then be able to solve the matrix in terms of X Y Z
  3 件のコメント
Stephen23
Stephen23 2020 年 2 月 27 日
Original Question: "solving ax=b for x"
So i have a matrix involving summations
matrix a = [F sum(sinp) sum(cosp)
sum(sinp) sum(sin^2(p)) sum(sinpcosp)
sum(cosp) sum(sinpcosp) sum(cos^2(p)) ]
b= [ X Y Z]
c=[sum(a) sum(asinp) sum(acosp)
how would i include the summations in the matrix
and how would I then be able to solve the matrix in terms of X Y Z
Rena Berman
Rena Berman 2020 年 5 月 14 日
(Answers Dev) Restored edit

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

回答 (1 件)

Sai Bhargav Avula
Sai Bhargav Avula 2020 年 2 月 23 日
Hi,
You can use the mldivide or \, for solving the same.
Refer the following link for detailed explanation,
Hope this helps!
  2 件のコメント
Boss Man
Boss Man 2020 年 2 月 23 日
how would i include the summation
Sai Bhargav Avula
Sai Bhargav Avula 2020 年 2 月 24 日
Can you elaborate what you meant by including summation in matrix. If your problem is to solve a*b' = c', then you can find b', from a\c'

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by