Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

ConcatenateFrequencies.m 760 B

1234567891011121314151617181920212223242526272829
  1. path = uigetdir();
  2. res = Concatenate(path);
  3. outputPath = fullfile(path, "CombinedFrequencies.csv");
  4. writematrix(res, outputPath);
  5. function res = Concatenate(path)
  6. import tools.GetSubjects;
  7. subjects = GetSubjects(path);
  8. for subjId = 1:length(subjects);
  9. subject = subjects{subjId};
  10. modulePath = fullfile(path, subject, "Modules", "Frequencies.csv");
  11. subjFreqs = readmatrix(modulePath);
  12. [nModules, nTasks] = size(subjFreqs);
  13. subjAsNum = str2num(subject);
  14. % Append id to frequency
  15. subjFreqs = [repelem(subjAsNum, nModules, 1) (1:nModules)' subjFreqs];
  16. if exist('res', 'var')
  17. res = [res; subjFreqs];
  18. else
  19. res = subjFreqs;
  20. end
  21. end
  22. end