Constructor for a class, that accepts name-value pairs for setting properties
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Properties en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!