Is there a way to call Matlab functions from outside, in particular Windows cmd(but also a Linux terminal, LUA scripts, etc.) WITHOUT opening a new Matlab instance every time?
for example in cmd:
matlab -sd myCurrentDirectory -r "function(parameters)" -nodesktop -nosplash -nojvm
opens a new instance of Matlab relatively quickly and performs my function. Opening and closing this abbreviated matlab prompt takes about 2 seconds (without calculations) - hence, for 4,000 executions over 2 hours. I would like to avoid this, since the called function is always in the same workspace. Can this always be done in the same instance?
I already did some research and found the MATLAB COM Automation Server feature , but for me it seems rather complicated, and I do not see the basic steps to make it work for my business. Any tips for this?
I am not familiar with c/c++/c#, but I am thinking about using python(but only in the worst case).
source
share