Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?