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!