matlab.metadata.Class.fromName - Return matlab.metadata.Class object that describes named
class - MATLAB ([original](https://in.mathworks.com/help/matlab/ref/matlab.metadata.class.fromname.html)) ([raw](?raw))
Main Content
Class: matlab.metadata.Class
Namespace: matlab.metadata
Return matlab.metadata.Class
object that describes named class
Renamed from meta.class.fromName
in R2024a
Syntax
Description
`mcls` = matlab.metadata.Class.fromName([className](#mw%5F04adf981-89ca-4ffe-a2b1-83f50db9e79b))
returns the matlab.metadata.Class
object that describes the specified class.
Input Arguments
Class name, specified as a character vector or string scalar.
Examples
Retrieve matlab.metadata.Class
Object
Retrieve a matlab.metadata.Class
object describing theduration
class.
md = matlab.metadata.Class.fromName("duration")
md =
Class with properties:
Name: 'duration'
Description: 'Arrays to represent lengths of time in fixed-length time units.'
DetailedDescription: ' duration arrays store values to represent lengths of time...'
Hidden: 0
Sealed: 1
Abstract: 0
Enumeration: 0
ConstructOnLoad: 0
HandleCompatible: 0
InferiorClasses: [1×1 matlab.graphics.internal.GraphicsMetaClass]
Namespace: [0×0 matlab.metadata.Namespace]
Aliases: [0×1 string]
RestrictsSubclassing: 1
PropertyList: [6×1 matlab.metadata.Property]
MethodList: [150×1 matlab.metadata.Method]
EventList: [0×1 matlab.metadata.Event]
EnumerationMemberList: [0×1 matlab.metadata.EnumerationMember] SuperclassList: [3×1 matlab.metadata.Class]
Version History
Introduced in R2008a
The meta.class.fromName
method has a new namespace and class name,matlab.metadata.Class.fromName
. The behavior remains the same. The recommended practice is to update the name in your code, although MATLAB® will continue to recognize the old name.