Vpasolve and indeterminate system

조회 수: 9 (최근 30일)
Eve_B
Eve_B 2019년 1월 16일
답변: Walter Roberson 2019년 1월 16일
Hello,
I have an indeterminate systemm, AX=B, which means that solutions exist but A does not have full column rank, it is singular. Is it posiible to use vpasolve to obtain some solutions in this case, even though there will be an indeterminacy of some constants?
Thank you!

답변 (2개)

Star Strider
Star Strider 2019년 1월 16일
The vpasolve function may not be your best option.
See if the lsqr (link) function will do what you want. It’s intended for sparse matrices. It can also works iwth singular matrices.

Walter Roberson
Walter Roberson 2019년 1월 16일
If solutions do exist then even if the system is underdetermined, vpasolve() can potentially solve it. If you needed multiple solutions you could either try the 'random' option or you could carefully supply search ranges, executing multiple times with one of the variables constrained to different ranges, to try to find multiple solutions relative to that variable.

카테고리

Help CenterFile Exchange에서 Numerical Integration and Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by