meta.package.fromName

Return meta.package object for specified package

Syntax

mp = meta.package.fromName(packageName)

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

Introduced in R2008a