metaproperty(classN​ame, propertyName)

Retrieve objects more easily.
Aktualisiert 14. Apr 2018

Lizenz anzeigen

Includes these three functions:
- metaproperty(className, propertyName)
- metaproperties(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 objects.

The metaproperty function is very flexible with its inputs.

A prominent example where 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.

Zitieren als

Roman Müller-Hainbach (2024). metaproperty(className, propertyName) (, MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2013a
Kompatibel mit allen Versionen
Windows macOS Linux
Mehr zu Class Introspection and Metadata finden Sie in Help Center und MATLAB Answers

Inspiriert von: strlookup

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise