Can you run third party applications multiple times with MATLAB for analysis?

Hi everyone,
I would like to know whether I can open a third party application using MATLAB and write a code so that the third party application opens a xlsx file, adds a value to a row using its algorithm and then save it in a folder. What I want to do is that the code in MATLAB runs this operation 100 times. Is this possible?
Thanks in advance.

 Accepted Answer

Sometimes it is possible. It depends on the application, on whether it accepts command line arguments; and if you are using MS Windows, on whether it has an ActiveX control for it.
Similar things have been implemented for some applications, but the details vary a fair bit with the application.

8 Comments

@Walter Roberson I want to run Elements which is a free weather file tool. What do you think about it?
Unfortunately that particular program does not offer any command line support or any ActiveX support.
As source code for it is provided, in theory it would be possible to write a command line tool for it... but it would probably not be trivial.
With the code in its present form, the only way to control it from MATLAB appears to be by using the Java Robot class, which would have to know exactly where everything is positioned in order to click blindly where you would click if you were running the program yourself.
I just sent a note to the company asking about external control; I do not know how long until they reply.
The company confirmed to me that there currently no external control available.

Sign in to comment.

More Answers (0)

Products

Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!