Main Content

meta.package.fromName

Class: meta.package
Package: meta

Return meta.package object for specified package

Description

example

mp = meta.package.fromName(packageName) returns the meta.package object associated with the named package. If packageName is a nested package, then you must provide the fully qualified name (for example, packageName1.packageName2).

Input Arguments

expand all

Package name, specified as a character vector or a string scalar.

Data Types: char | string

Output Arguments

expand all

meta.package object for the specified package.

Examples

expand all

Return the names of the classes contained in the event package.

mev = meta.package.fromName('event');
for k=1:length(mev.Classes)
   disp(mev.Classes{k}.Name)
end
event.EventData
event.ClassInstanceEvent
event.PropertyEvent
event.ParentEvent
event.ChildEvent
event.DynamicPropertyEvent
event.listener
event.proplistener

Extended Capabilities

Thread-Based Environment
Run code in the background using MATLAB® backgroundPool or accelerate code with Parallel Computing Toolbox™ ThreadPool.

Version History

Introduced in R2008a