Communicating between two matlab GUI programs on the same computer.

3 views (last 30 days)
Hello,
I am trying to interface two matlab programs (with GUIs) running on the same computer and the same Matlab instance.
Essentially, I need to be able to query a particular variable in one program when prompted to do so by the other, and then update this variable after a certain calculation has been completed.
I have done this before between instances running on separate computers via TCP/IP, but never on the same computer.
Thanks!

Answers (1)

Adam
Adam on 26 Aug 2014
My favoured approach is to use handle-derived classes shared between objects with listeners attached.
If you aren't familiar with classes and don't want to be though then options to do with setting gui tags and using global findobj type functionality works.

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!