I'm running a torch command from MATLAB. From the command line in the terminal the same command works perfectly, but when I run it from matlab with the system function if complains about not finding cutorch, or any of the require packages in the torch script (torch, nn, image, optim loadcaffe). Is there a way I can add a path? What is my best solution, to run a torch script from MATLAB that will not involve re-writing my torch script into MATLAB. I guess one solution is writing the MATLAB script into torch, but that itself for what I am doing is non-trivial and somewhat problematic.
Thoughts?