How to get the index of new number in descending sequence vector
1 回表示 (過去 30 日間)
古いコメントを表示
I have probability named A and B
A=[ 0.6 0.2 0.1 0.5 0.5]
B=[ 0.15]
Then the probabilty is arranged and named C
C=[0.6 0.2 0.15 0.1 0.5 0.5]
how can I get to know that probability B is at column 3?
0 件のコメント
採用された回答
madhan ravi
2018 年 11 月 17 日
編集済み: madhan ravi
2018 年 11 月 17 日
location=find(ismember(C,B))
Note: logical indexing is faster than find
2 件のコメント
madhan ravi
2018 年 11 月 17 日
how can I get to know that probability B is at column 3?
Anytime :) ,The answer above is for this question
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!