metaproperty(classN​ame, propertyName)

Retrieve meta.property objects more easily.
16.0 次下载
更新时间 2018/4/14

查看许可证

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.

引用格式

Roman Müller-Hainbach (2024). metaproperty(className, propertyName) (https://www.mathworks.com/matlabcentral/fileexchange/66919-metaproperty-classname-propertyname), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Class Introspection and Metadata 的更多信息
致谢

参考作品: strlookup

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0