pick numbers from matrix with probability
古いコメントを表示
Hi !
I have a matrix that contain the probability of two variables.
is there a function that pick for example 6 numbers and get their index. but the numbers that it picks vary.
for example one equals the mean another one is way far from the mean and the rest in between.
as an example these are the value inside the matrix:
0.495172050518114 0.499673696800097 0.504165848780560 0.508647518680314
0.498924748106845 0.503460510444308 0.507986706526993 0.512502341089754
0.502655617713492 0.507225297666612 0.511785339830220 0.516334741496754
0.506363747185978 0.510967138022487 0.515560819970764 0.520143782926196
0.510048224444374 0.514685111140220 0.519312218302613 0.523928528477073
0.513708137847587 0.518378297090918 0.523038606626558 0.527688041699157
(the matrix I have is much biger so the values ar not as close to each other as in this portion)
in this case I would like to get 6 pairs of indix to distict values. I dont want to pick numbers that are all close to the mean or that all of them are far from it.
1 件のコメント
madhan ravi
2019 年 2 月 17 日
illustrate with an example
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!