Is properties like global variables?

조회 수: 3 (최근 30일)
Muazma Ali
Muazma Ali 2023년 2월 21일
답변: chrisw23 2023년 2월 22일
Hi! :)
Is properties in matlab app designer like global variables in matlab program? I am a little confused..

답변 (2개)

Matt J
Matt J 2023년 2월 21일
편집: Matt J 2023년 2월 21일
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
Walter Roberson
Walter Roberson 2023년 2월 21일
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)

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


chrisw23
chrisw23 2023년 2월 22일
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.

카테고리

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