メインコンテンツ

matlab.metadata.Namespace Class

Namespace: matlab.metadata
Superclasses: matlab.metadata.MetaData

Describe MATLAB namespace

Renamed from meta.package in R2024a

Description

The matlab.metadata.Namespace class contains information about MATLAB® namespaces. All properties are read-only.

Namespaces can contain classes, functions, and contained namespaces (referred to as inner namespaces). A namespace can also itself be contained by an outer namespace.

The matlab.metadata.Namespace class is a handle class.

Class Attributes

Sealed
true
Abstract
true
RestrictsSubclassing
true
HandleCompatible
true
Hidden
true

For information on class attributes, see Class Attributes.

Creation

A matlab.metadata.Namespace object can be obtained from the Namespace property of matlab.metadata.Class.

Properties

expand all

Namespace, returned as a character vector.

Short description of the namespace, returned as a character vector.

This property is not used.

List of classes that are scoped to this namespace, returned as an array of matlab.metadata.Class objects.

List of functions that are scoped to this namespace, returned as an array of matlab.metadata.Method objects.

List of inner namespaces that are contained by this namespace, returned as an array of matlab.metadata.Namespace objects.

Outer namespace that contains this namespace, returned as a matlab.metadata.Namespace object. If this namespace is not contained in another namespace, the matlab.metadata.Namespace object is empty.

Methods

expand all

Examples

collapse all

Create a metaclass instance of matlab.mixin.Heterogeneous.

x = ?matlab.mixin.Heterogeneous
x = 

  Class with properties:

                     Name: 'matlab.mixin.Heterogeneous'
              Description: 'Enable heterogeneous array formation'
      DetailedDescription: ''
                   Hidden: 0
                   Sealed: 0
                 Abstract: 1
              Enumeration: 0
          ConstructOnLoad: 0
         HandleCompatible: 1
          InferiorClasses: [0×1 matlab.metadata.Class]
                Namespace: [1×1 matlab.metadata.Namespace]
                  Aliases: [0×1 string]
     RestrictsSubclassing: 0
             PropertyList: [0×1 matlab.metadata.Property]
               MethodList: [5×1 matlab.metadata.Method]
                EventList: [0×1 matlab.metadata.Event]
    EnumerationMemberList: [0×1 matlab.metadata.EnumerationMember]
           SuperclassList: [0×1 matlab.metadata.Class]

Access the Namespace property to get information about the matlab.mixin namespace. The results include what classes, functions, and inner namespaces are contained in matlab.mixin.

x.Namespace
ans = 

  Namespace with properties:

                   Name: 'matlab.mixin'
            Description: 'matlab.mixin'
    DetailedDescription: ''
              ClassList: [9×1 matlab.metadata.Class]
           FunctionList: [1×1 matlab.metadata.Method]
        InnerNamespaces: [4×1 matlab.metadata.Namespace]
         OuterNamespace: [1×1 matlab.metadata.Namespace]

Version History

Introduced in R2008a

expand all