MATLAB Answers

0

How can i pass data between file generated by matlab into a graphical window of another software ?

Asked by Vasishta Bhargava on 14 Jul 2018
Latest activity Answered by Walter Roberson
on 14 Jul 2018
I have a GUI which will produce/ write data to an excel file and also create file with extension something like, $.prj or $.pj etc, The data produced /written to file needs to be further written in a relevant graphical window of another software... how can I do it ?

  0 Comments

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 14 Jul 2018

You cannot force anything to be written into a different program.
However, some other programs give tools that permit other programs to trigger actions. For example on Windows it is not uncommon for programs to provide ActiveX controls.
If a program does not provide any tools, but the program can import what is needed if the user were to take some actions typing and clicking in the program, then you can typically "remote control" the program using Java Robot class from MATLAB. This can be a nuisance, though, as you have to know exact screen coordinates to move the mouse to in order to issue the clicks. Java Robot class has no ability to say (for example) "Move to the File menu and click there": it only has the ability to say (for example) "Move to X = 102, Y = 83 and click there".

  0 Comments

Sign in to comment.