#StackBounty: #javascript #matlab #typescript #com MATLAB as COM Automation Server with Javascript

Bounty: 50

I am trying to make a connection between Matlab and a Javascript (typescript in my case) program with a COM automation server as suggested on the MathWorks website. The docs on the website have examples for some languages created by MS, not for javascript.

I can’t seem to find a lot of information on how to establish such a COM connection with JS. From what I’ve read, it’s an old Microsoft feature that was only used with Internet Explorer.

The program I am writing is a VS Code extension, thus I am not using Internet Explorer at all. As a result, I do not believe I can use ActiveXObjects.

Is there another way to establish a connection between my typescript code and the Matlab instance?

I am trying to run Matlab files from the VS Code terminal without opening a custom Matlab terminal or the complete Matlab GUI. The output should be displayed in the VS Code terminal as well. On MacOS and Linux, I can simply use the CLI tools, but due to the differences between the Windows version and MacOS/Linux versions, this is not possible on Windows.

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.