I'm trying to run a MATLAB script from a python script (using os.system to run it in the command line) and I'm having this error:
'MATLABScriptName' is not found in the current folder or on the MATLAB path, but exists in:
/Users/path/to/where/it/exists
Change the MATLAB current folder or add its folder to the MATLAB path.
I don't have this issue when I'm running the same command from the terminal as opposed to the python script. The MATLAB script is in the same directory where the python script is and where I'm running the python script from.
What can I do to make MATLAB recognize the current directory as the current folder?
Thanks!