how to randomly select an element from an array having the least probability in matlab
example :
A = [ 1,2,3,4,5,6] P = [ 0.01,0.2,0.25.0.2,0.25,0.09] % probability %
Aucun commentaire:
Enregistrer un commentaire