I am trying to implement this paper. In the paper the equation 2 says P_i = 1/K * (1/1-M_i) where where K is a normalization factor to make max_i P_i = 1. can anyone suggest a way to compute P_i in matlab. I have calculated the matrix M using a equation described in the paper.

 採用された回答

KSSV
KSSV 2016 年 11 月 15 日

0 投票

How about this?
m = rand(3) ;
p_i = 1./(ones(3)-m) ;
p_i = p_i/max(p_i(:)) ;

1 件のコメント

udvranto
udvranto 2016 年 11 月 15 日
thanks! it works!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

タグ

質問済み:

2016 年 11 月 15 日

コメント済み:

2016 年 11 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by