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.

add_to_list.m 355 B

12345678910111213
  1. function out = add_to_list(carr, target, pos)
  2. % list = add_to_list(list, item, pos)
  3. % Adds the string item to the input list (cell array of strings) at position pos
  4. % Check if item is in array
  5. cind = strcmp(target, carr);
  6. out = carr;
  7. if any(cind)
  8. out(cind) = [];
  9. end
  10. out = [carr(1:pos-1) target carr(pos+1:end)];
  11. end