Is there a difference between declaring a class property "Dependent" versus "Dependent = true"?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Austin Spencer
am 12 Jul. 2019
Bearbeitet: Matt J
am 12 Jul. 2019
The title says it all. The documentation doesn't make it clear whether or not there is a difference between
properties(Dependent)
aProp
end
and
properties(Dependent=true)
aProp
end
since it uses both seemingly interchangeably. Is there a difference?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Brendan Hamm
am 12 Jul. 2019
There is no difference. For attributes which are binary (true/false) then just putting the attribute name is the same as toggling it from its default state.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Construct and Work with Object Arrays 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!