Solve system of Linear Equations with Constraints.

조회 수: 7 (최근 30일)
atharva aalok
atharva aalok 2021년 11월 12일
편집: Matt J 2021년 11월 12일
I have the following system of equations with a constraint:
n equations with n unknowns
Here are all known. (Its a known n*n matrix of values).
How do I find all the (vector of 's)?

채택된 답변

Matt J
Matt J 2021년 11월 12일
편집: Matt J 2021년 11월 12일
[V,e]=eig(P.','vector');
[~,imin]=min(abs(e-1));
piVector=V(:,imin)/sum(V(:,imin));
  댓글 수: 1
Matt J
Matt J 2021년 11월 12일
편집: Matt J 2021년 11월 12일
@atharva aalok Though you haven't mentioned it, I'm assuming P is a stochastic matrix. Otherwise, there is no guarantee the equations have a solution.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by