How do you pass a variable between two different matlab apps

So I have been looking at how to pass variables between two apps and nothing has worked.
I have two apps. In app 1 the code is
function RunApp2ButtonPushed(app, event)
app.data = allthedata;
run('App2.mlapp')
end
I can't use the matlab editor because it keeps breaking. :)
Then the code for app2 is
function startupFcn(app)
data = app.data
end
The error I get is "Unrecognized method, property, or field 'data' for class 'App2'.
How do I fix this? Thanks for your help

답변 (1개)

Steven Lord
Steven Lord 2021년 1월 13일

0 개 추천

Have you tried following the procedure shown on this documentation page?

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2021년 1월 13일

답변:

2021년 1월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by