Passing arguments between 2 standalone apps

1 回表示 (過去 30 日間)
Iacopo
Iacopo 2022 年 9 月 1 日
コメント済み: Iacopo 2022 年 9 月 2 日
Hi all,
How can I pass arguments between 2 compiled apps?
I tried to put in the app 2 StartUp func. arguments a variable A as test but I don't don't how to pass the same variable from app 1.
Moreover, app 2 starts anyway even though it's given a parameter A in the StartUp func. which is not defined anywhere.
Also, is it possible to compile app 1 and app 2 together within the same installer file?
Thanks for your help!

回答 (1 件)

Kevin Holly
Kevin Holly 2022 年 9 月 1 日
Please see the links below:
For an example, see one of my multiwindowed apps on the File Exchange: Rodent Tracker (Note, you will have to comment out lines 616 and 617, which use the addpath function before compiling).
It is possible to compile the two apps together within the same installer. I did it for the above app.
Let me know if you would like me to make a simple example app.
  1 件のコメント
Iacopo
Iacopo 2022 年 9 月 2 日
Hi Kevin,
Thanks for your response!
I am already able to create multi windows apps and sharing arguments between them.
I don't know if this is possible to do but what I mean is about 2 compiled .exe. What if for example app 1 is an app written in C and I want to open an app 2 in MATLAB from app 1 passing an argument (e.g. a string, in detail a folder path) between them?
Thank you

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by