MATLAB Answers

How to pick randomly elements from a vector without repetation?

1 view (last 30 days)
IBM watson
IBM watson on 22 Oct 2018
Edited: Bruno Luong on 22 Oct 2018
If I have a vector like this :
a=[1 2 3 4 5]
i know how to do this but my vector is something like:
a=[23 46 4 2 5]
I should pick 2 elements randomly without repetation.

  0 Comments

Sign in to comment.

Accepted Answer

More Answers (0)


Translated by