Created
November 7, 2020 18:05
-
-
Save ritwikraha/f38d44178cb5d2e17a62fa5c954ada9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
for id = 1:32 | |
sdata = load(strcat('s',num2str(id),'.mat')); | |
sdata = sdata.data; | |
slabels = load(strcat('s',num2str(id),'.csv')); | |
[~,idx] = sort(slabels(:,2)); | |
sortedlabels = slabels(idx,:); | |
sorteddata = sdata(idx,:,:); | |
save('strcat('s',num2str(id),'.mat')', sorteddata); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works only with the provided .csv files for each subject pertaining to the VAQ labels and the original trial-experiment id mapping