Check if property is dependent

14 vues (au cours des 30 derniers jours)
Jurgen
Jurgen le 20 Déc 2017
Commenté : Jurgen le 20 Déc 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.
  1 commentaire
Birdman
Birdman le 20 Déc 2017
Share your code.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Déc 2017
  1 commentaire
Jurgen
Jurgen le 20 Déc 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion 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