How to run .m script using spm standalone with mcr? any example?

Hi Shahid,

could you solve this issue in the meantime? If yes, maybe you could provide an answer to your question? I am struggling with the exact same problem…

I found a lot of links around this topic but still couldn’t manage to set up a simple dummy script (e.g. run a .m-script using MCR that simply prints ‘hello’). Specifically, I am using Michael Notter’s nipype_tutorial container that contains the precompiled MATLAB version. In this container, the application file is saved under '/opt/matlabmcr-2010a/v713/bin/matlab'

There’s one similar neurostars post (which also hasn’t received an answer) and one post on the mailing list. In this github issue, there is some code which tells how to set up a basic MatlabCommand class but I couldn’t integrate this information to come up with a working example. Finally, on this page there’s a description of how to ‘tell’ the class where it can find MATLAB and I guess that’s also the crucial part that is missing currently in my code.

I always get this message: OSError: No command "matlab" found on host 2e1d943f4729. Please check that the corresponding package is installed.