MATLAB Answers

solving ax=b for x

조회 수: 8(최근 30일)
Boss Man
Boss Man 23 Feb 2020
댓글: Rena Berman 14 May 2020 16:49
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

Mario Malic
Mario Malic 24 Feb 2020
Maybe it's best for you if you try calculating each element of matrices A and C and then plug them in respective matrix. Refer to documentation on 'sum'.
Then you can use mldivide as Sai pointed it out.
Stephen Cobeldick
Stephen Cobeldick 27 Feb 2020
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 14 May 2020 16:49
(Answers Dev) Restored edit

로그인 to comment.

답변(1개)

Sai Bhargav Avula
Sai Bhargav Avula 23 Feb 2020
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 23 Feb 2020
how would i include the summation
Sai Bhargav Avula
Sai Bhargav Avula 24 Feb 2020
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'

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by