Finding more than one solution for Matrix Multiplication (Ax = b)
이전 댓글 표시
For some A and b, there are infinite solutions.
Currently, I only know one way to solve for x, which solves for only 1 x. That is, A\b. How do I find more than 1 solution? Is there any I can find specifically 2 solutions?
Thanks, Clark
채택된 답변
추가 답변 (3개)
Wayne King
2012년 9월 15일
0 개 추천
Yes, you can use null() to find a vector from the null space
댓글 수: 1
Wayne King
2012년 9월 15일
No, you just use null() on the matrix. null(A) then you get a basis for the nullspace of A, you can add any linear combination of vectors from the nullspace of A to a particular solution and you get a different solution of the linear system
Clark
2012년 9월 15일
0 개 추천
댓글 수: 1
Wayne King
2012년 9월 15일
All the solutions will be a particular solution plus linear combinations of the nullspace. You can easily write a function that gives you a specified number of linear combinations.
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!