Solve system of Linear Equations with Constraints.

10 次查看(过去 30 天)
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