dimanche 3 mai 2015

Randomly select number and its index from an array in matlab

I have one array c=[1 2 3 4 5]; with possibly number of duplicate numbers. I want to randomly choose an element from a array as well as its index. Can anybody help me..




Aucun commentaire:

Enregistrer un commentaire