MATLAB: How to run a MATLAB application from PowerPoint in the current MATLAB session

MATLAB

In the Powerpoint slide, everytime I click on the link, it invokes a new MATLAB session. This is taking a lot of time to load causing inconvenience. I would like the PowerPoint application to connect to an existing session of MATLAB.

Best Answer

  • In order to connect to an existing MATLAB session, you will need to convert an existing MATLAB session into an Automation server.
    To enable the Automation server in the current MATLAB session:
    enableservice('AutomationServer',true)
    Type the following command at MATLAB command prompt for more information on this function.
    doc enableservice
    After enabling the Automation server, you can run the application from PowerPoint in that session.