u-dales icon indicating copy to clipboard operation
u-dales copied to clipboard

Change `write_inputs.m` to a MATLAB function instead of a script

Open bss116 opened this issue 5 years ago • 0 comments

write_inputs.m currently has the experiment number for the preprocessing hardcoded, which is updated by the shell script write_inputs.sh and causes git to detect a file change every time the preprocessing is used. It also relies on the environmental variables "DA_EXPDIR" and "DA_TOOLSDIR". Re-writing it as a MATLAB function, it can take these parameters as input arguments instead, see https://uk.mathworks.com/matlabcentral/answers/388543-how-do-i-pass-a-shell-script-variable-as-an-argument-to-a-matlab-function.

bss116 avatar Nov 10 '20 18:11 bss116