Solve system of Linear Equations with Constraints.
4 次查看(过去 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)?


0 个评论
采纳的回答
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
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 Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!