Shuffle rows of a matlab matrix

Alec Jacobson

January 15, 2012

weblog/

Neat little trick using the keyword end:
M =  M(randperm(end),:);