我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

meta.package.fromName

Return meta.package object for specified package

Syntax

mpkg = meta.package.fromName('pkgname')

Description

mpkg = meta.package.fromName('pkgname') is a static method that returns the meta.package object associated with the named package. If pkgname is a nested package, then you must provide the fully qualified name (e.g., 'pkgname1.pkgname2').

Examples

List the classes in the event package:

mev = meta.package.fromName('event');
for k=1:length(mev.Classes)
   disp(mev.Classes{k}.Name)
end
event.EventData
event.PropertyEvent
event.listener
event.proplistener
Was this topic helpful?