MATLAB: Connect to Bloomberg automatically

bloomberg

Everytime i start matlab i have to connect to bloomberg with "javaaddpath('C:\blp\API\blpapi3.jar')" .
Now my question is, how can i save such a process in order to not type it in like that everytime i wish to connect with bloomberg. thanks in advance

Best Answer

You can try to add the javaaddpath command to the MATLAB startup file (see http://www.mathworks.com/help/matlab/ref/startup.html for details). On my Mac, this file is located at /Applications/MATLAB_R2014a.app/toolbox/local/startup.m.