setenv not working properly?
10 views (last 30 days)
setenv and getenv used to work nicely for me, and enabled me to call other scripts using the unix command. recently it stopped working. Not sure when, but i am now using MATLAB 2017a, and mac OS Sierra 10.12.6.
For instance, from matlab command line:
unix('which perl') /bin/bash: which: command not found
While, from terminal:
Although i have defined the following on my startup.m: setenv('PATH','usr/bin:/usr/local/bin');
Does anyone know how to fix this? Thanks, Guy