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!