Created
September 4, 2023 16:50
-
-
Save z1nc0r3/49ba1c8bb15c422813e5e71603005367 to your computer and use it in GitHub Desktop.
Shuffle data using Matlab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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