metaproperty(classN​ame, propertyName)

Retrieve meta.property objects more easily.

Al momento, stai seguendo questo contributo

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.

Cita come

Roman Müller-Hainbach (2026). metaproperty(className, propertyName) (https://it.mathworks.com/matlabcentral/fileexchange/66919-metaproperty-classname-propertyname), MATLAB Central File Exchange. Recuperato .

Riconoscimenti

Ispirato da: strlookup

Categorie

Scopri di più su Class Introspection and Metadata in Help Center e MATLAB Answers

Informazioni generali

Compatibilità della release di MATLAB

  • Compatibile con qualsiasi release

Compatibilità della piattaforma

  • Windows
  • macOS
  • Linux
Versione Pubblicato Note della release Action
1.0