[data_dir_path, ExpIDinfo]=get_data_path(all_acode_expIDs(ind,2));
amending to
[data_dir_path, ExpIDinfo]=get_data_path(all_acode_expIDs(ind,2),[],ExpLog);
This helps with 2 things:
1) prevents the warning 'getting ExpLog from ws' to be printed with each iteration of the expid loop. This, for a minor subset of my data (perhaps 10%), already goes to 1k.
2) passing over ExpLog also circumvents having to query the SQL server 1k times.
The output of the function is identical.
- heinmatt