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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by