solving ax=b for x
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
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
      
      
 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
답변 (1개)
  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
  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 Exchange에서 Matrix Indexing에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




