MATLAB: Shuffle a vector of repeated numbers so the numbers do not repeat
shufflevector
Hi,
I have a vector fam1_1 = [1,1,1,2,2,2,3,3,3,4,4,4] that I need shuffled without having any numbers be repeated. Does anyone have any suggestions on how to do this?
Best Answer