Skip to content

Instantly share code, notes, and snippets.

@z1nc0r3
Created September 4, 2023 16:50
Show Gist options
  • Save z1nc0r3/49ba1c8bb15c422813e5e71603005367 to your computer and use it in GitHub Desktop.
Save z1nc0r3/49ba1c8bb15c422813e5e71603005367 to your computer and use it in GitHub Desktop.
Shuffle data using Matlab
function data = shuffleData(data)
[m, n] = size(data);
indices = randperm(m);
data = data(indices, :);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment