app designer private and public properties?

조회 수: 38 (최근 30일)
Abdelrahman Taha
Abdelrahman Taha 2020년 1월 2일
댓글: TADA 2022년 6월 7일
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

채택된 답변

TADA
TADA 2020년 1월 2일
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
Isabelle Lorei
Isabelle Lorei 2022년 6월 7일
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 2022년 6월 7일
Yes

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by