solving ax=b for x

2 visualizaciones (últimos 30 días)
Boss Man
Boss Man el 23 de Feb. de 2020
Comentada: Rena Berman el 14 de Mayo de 2020
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 comentarios
Stephen23
Stephen23 el 27 de Feb. de 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 el 14 de Mayo de 2020
(Answers Dev) Restored edit

Iniciar sesión para comentar.

Respuestas (1)

Sai Bhargav Avula
Sai Bhargav Avula el 23 de Feb. de 2020
Hi,
You can use the mldivide or \, for solving the same.
Refer the following link for detailed explanation,
Hope this helps!
  2 comentarios
Boss Man
Boss Man el 23 de Feb. de 2020
how would i include the summation
Sai Bhargav Avula
Sai Bhargav Avula el 24 de Feb. de 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'

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by