Effacer les filtres
Effacer les filtres

Is properties like global variables?

8 vues (au cours des 30 derniers jours)
Muazma Ali
Muazma Ali le 21 Fév 2023
Hi! :)
Is properties in matlab app designer like global variables in matlab program? I am a little confused..

Réponses (2)

Matt J
Matt J le 21 Fév 2023
Modifié(e) : Matt J le 21 Fév 2023
No, they are not like global variables. They are attached to the app object used by the callbacks and must be accessed similarly to structs:
app.property1=...
app.property2=...
  1 commentaire
Walter Roberson
Walter Roberson le 21 Fév 2023
Also the object class can be designed to restrict read or write access (though I am not sure how much support App Designer provides for this)

Connectez-vous pour commenter.


chrisw23
chrisw23 le 22 Fév 2023
see the first line of a mlapp file
classdef app1 < matlab.apps.AppBase
Each AppDesigner app is nothing more than a class definition following the same rules.

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by