History of AFNI updates  

|
July 06, 2012 03:45PM
I've had a few problems with MATLAB resetting the library path. As a fix, I've appending the following to all AFNI commands before calling them via MATLAB. Hope this helps!

export DYLD_LIBRARY_PATH=""


So for example a command to do quick masking of a dataset via 3dcalc looks like this:

mask_command = ['export DYLD_LIBRARY_PATH=""; 3dcalc  -a ',...
                           reg_outputfile, '.TMP+tlrc -b mask.nii.gz ',...
                           '-expr ''step(b)*a'' -prefix ', reg_outputfile];

system(mask_command);
Subject Author Posted

A problem of using matlab to perform AFNI commands

Victor July 06, 2012 03:38PM

Re: A problem of using matlab to perform AFNI commands

Peter Molfese July 06, 2012 03:45PM

Re: A problem of using matlab to perform AFNI commands

Will March 15, 2013 11:53AM