I am looking for a way to shuffle and split my data to test 2 methods. I use 'shuffle' before using 'spliteachlabel'.
The reason I use shuffle is that I want to test many time, but shuffle will random shuffle my data without uncontronable which make the result unfair since the data is run for each method are not the same. So I wonder that there is a way to make the shuffle function run at exactly way.
I got the similar idea in Python, but dont know how to make it in Matlab