metaproperty(className, propertyName)
Includes these three functions:
- metaproperty(className, propertyName)
- metaproperties(className)
- meta.property.fromName(className, propertyName)
Retrieving meta.class objects in MATLAB is conveniently done through the ?-operator and metaclass- or meta.class.fromName-functions. This submission aims to provide similar ways to retrieve meta.property objects.
The metaproperty function is very flexible with its inputs.
A prominent example where meta.property objects are needed is the construction of event.proplistener objects.
Also have a look at the help for these functions to learn more about them. The metaproperty function takes optional arguments to filter the results based on property attributes.
Citar como
Roman Müller-Hainbach (2024). metaproperty(className, propertyName) (https://www.mathworks.com/matlabcentral/fileexchange/66919-metaproperty-classname-propertyname), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: strlookup
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
+meta/+property/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0 |
|