Monday, 9 September 2013

How do I randomly pick an element in each column of a matrix in MATLAB?

How do I randomly pick an element in each column of a matrix in MATLAB?

Question title explains what I would like. For example, if there are 6
elements in a particular column, how do I randomly pick 1 element from
that column. Please keep it simple if possible.
Thanks for the help.

No comments:

Post a Comment