app designer private and public properties?

35 Ansichten (letzte 30 Tage)
Abdelrahman Taha
Abdelrahman Taha am 2 Jan. 2020
Kommentiert: TADA am 7 Jun. 2022
Hi,
In app designer, if i am going to exectute come functions within the app, can I just use private properties? or do I need to use public ones to be shared outside of the app, i.e. within these functions?
Thanks

Akzeptierte Antwort

TADA
TADA am 2 Jan. 2020
If these functions are methods of your app, you can use private properties from within these methods, but if they are functions outside this app, that is in other .m files (different class, or static functions, makes no difference) you'd have to use public properties
  4 Kommentare
Isabelle Lorei
Isabelle Lorei am 7 Jun. 2022
My unterstanding:
The reason to define Properties is to create a variable to share and store data between callbacks and functions.
If I just need the data to be shared between callbacks and functions inside one app, I can use private properties.
But if I need the data to be shared between several apps, I need public properties.
Right?
TADA
TADA am 7 Jun. 2022
Yes

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by