matlab.metadata.Namespace.fromName
Class: matlab.metadata.Namespace
Namespace: matlab.metadata
Return matlab.metadata.Namespace
object for specified
namespace
Renamed from meta.package.fromName
in R2024a
Description
returns the mnsp
= matlab.metadata.Namespace.fromName(namespaceName
)matlab.metadata.Namespace
object associated with the
specified namespace. If namespaceName
is a nested namespace, then
you must provide the fully qualified name (for example,
nsp1.nsp2
).
Input Arguments
Examples
Get Namespace Contents
Return the names of the classes contained in the
event
namespace.
mev = matlab.metadata.Namespace.fromName("event"); for k=1:length(mev.ClassList) disp(mev.ClassList(k).Name) end
event.EventData event.ClassInstanceEvent event.PropertyEvent event.ParentEvent event.ChildEvent event.DynamicPropertyEvent event.listener event.proplistener