Dear Mrtrix developers and users,
I was wondering whether other people also use matlab to write scripts for executing the mtrix commands?
Typically executables are executed by using the system(command.exe) function of matlab.
However, I experience that matlab does not execute my mrtrix commands:
e.g. if I run system(‘mrconvert A01_DWI.nii A01_DWI.mif’), no new .mif file is constructed.
e.g. if I run system(‘mrconvert5769 A01_DWI.nii A01_DWI.mif’), matlab gives the error that command mrconvert5769 could nog be found
So the commands of mrtrix e.g. mrconvert are recognized, but not executed.
When I execute the command from a shell script, everything works fine.
Also, when I run another executable (not from mrtrix) from matlab with system(), this works fine.
I could not find why the commands of mrtrix could not be executed correctly with the system() function in matlab?
Thank you for your efforts in advance!
With kind regards,