Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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

Was this topic helpful?