필터 지우기
필터 지우기

Passing arguments between 2 standalone apps

조회 수: 5 (최근 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 CenterFile Exchange에서 Develop 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