Print

Print


Hi,

I still think the safest solution is to go with setting the environment up
explicitly as then it will work regardless of how matlab is started and
will work on other machines too.

My 2p worth,
	Mark


On 26 Jan 2012, at 12:46, Timm Wetzel wrote:

> Dear Markus,
> 
> On 25.01.2012, at 21:06, Markus Gschwind wrote:
> 
>> Does this mean that it is generally not possible co run fsl commands on a Mac like this:
>> 
>> system('fslmaths myfile.nii -add myotherfile.nii etc')
>> 
>> and that I do have to make the detour across sprintf('sh -c " etc...)?
> 
> starting Matlab from the commandline should do the trick. (As in `/Applications/MATLAB_R2011a.app/bin/matlabī.)
> 
> Environment variables set in .bashrc et al are not available to Applications started from the Finder. For some sort of workaround, look up `~/.MacOSX/environment.plistī.
> 
> 
> Regards,
> Timm