Constructor for a class, that accepts name-value pairs for setting properties
Afficher commentaires plus anciens
Hello! Could anyone advise on how to write a class constructor, that accepts name-value pairs for setting properties? For the untouched properties it must use predefined values. Using like this:
X = classX('Prop1',val1,'Prop3',val3)
Thanks
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!