I'm not sure why this is happening. Do you get the same error running bxh2analyze without arguments? Are you running a version of bxh2analyze other than the default installed one? What is the result of the command "which bxh2analyze"?
I do not get the same error when I run it from the directory directly with Golgi, with the exact same arguments. Sorry I didn't make things clear, but I am trying to run the program from within Matlab in Golgi, with a script in Matlab.
If it's any help, I copied and pasted the whole error message below:
exec(): 0509-036 Cannot load program bxh2analyze because of the following errors: 0509-130 Symbol resolution failed for bxh2analyze because:
0509-136 Symbol adjustfield__Q2_3std8ios_base (number 146) is not exported from dependent module /usr/local/matlab6p5p1/sys/os/ibm_rs/libC.a(ansi_32.o).
(Above error message repeated about 20 times)
0509-192 Examine .loader section symbols with the 'dump -Tv' command. bxh2analyze --niftihdr -v run005_02.bxh run02: Signal 127