Check if property is dependent

14 Ansichten (letzte 30 Tage)
Jurgen
Jurgen am 20 Dez. 2017
Kommentiert: Jurgen am 20 Dez. 2017
I'm trying to write a method that checks if the non-dependent properties of a class are initialized properly. Using ` fieldnames` I can get all non-hidden properties and iterate over them, but can I then discriminate between dependent and non-dependent? I don't want to make the dependent properties hidden.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Dez. 2017
  1 Kommentar
Jurgen
Jurgen am 20 Dez. 2017
Thanks, I skimmed over that one before, must have missed it. It even has a full implementation of a findAttribute function for finding the dependent properties.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion 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