How do you pass a variable between two different matlab apps

15 Ansichten (letzte 30 Tage)
Nicholas Carreon
Nicholas Carreon am 13 Jan. 2021
Beantwortet: Steven Lord am 13 Jan. 2021
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

Antworten (1)

Steven Lord
Steven Lord am 13 Jan. 2021
Have you tried following the procedure shown on this documentation page?

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by