RunMat
  • Pricing
RunMat
GitHub
GitHub
DownloadSign InTry in Browser
DesktopRuntimeServer
RunMat

Run math blazing fast

GitHubX (Twitter)LinkedIn

Company

  • About
  • Pricing
  • Contact

Explore

  • RunMat for academia
  • RunMat vs MATLAB Online
  • Benchmarks

Get product updates and release notes from the RunMat team.

© 2026 Dystr · Made withfor the scientific community.

RunMat™ is a registered trademark of Dystr, Inc. MATLAB® is a registered trademark of The MathWorks, Inc. RunMat is not affiliated with, endorsed by, or sponsored by The MathWorks, Inc.

LicensePrivacy
/
See all docs
Builtin Reference
    • addprop
    • assignin
    • class
    • clear
    • clearAllMemoizedCaches
    • clearCache
    • clearvars
    • dbclear
    • dbstack
    • dbstatus
    • dbtype
    • evalc
    • feval
    • findprop
    • getcallinfo
    • inputParser
    • isa
    • ischar
    • isdeployed
    • iskeyword
    • ismethod
    • isobject
    • isstring
    • isUnderlyingType
    • keyboard
    • matlab.metadata.DynamicProperty.delete
    • memoize
    • metaclass
    • mislocked
    • mlock
    • munlock
    • namelengthmax
    • narginchk
    • nargoutchk
    • notify
    • onCleanup
    • stats
    • str2func
    • superclasses
    • underlyingType
    • verLessThan
    • version
    • which
    • who
    • whos

metaclass — Return metadata for the runtime class of a value.

metaclass(object) returns RunMat's metadata reference for the runtime class of object. RunMat represents MATLAB matlab.metadata.Class values as ClassRef metadata tokens, the same representation produced by the ?ClassName parser path.

Syntax

mc = metaclass(object)

Inputs

NameTypeRequiredDefaultDescription
objectAnyYes—Object or value whose runtime class metadata is requested.

Returns

NameTypeDescription
mcAnyMeta-class reference for the input value's runtime class.

How metaclass works

  • Object and handle-object inputs return a metadata reference for their registered runtime class.
  • Text inputs describe the runtime text class. A row character vector returns metadata for char; a string scalar or string array returns metadata for string.
  • Class references are ordinary metadata objects to metaclass and return metadata for meta.class.
  • Explicit gpuArray inputs return metadata for gpuArray; internal automatic residency returns metadata for the underlying host class without gathering provider buffers.
  • Numeric, logical, cell, struct, function-handle, listener, and MException values return metadata for their RunMat runtime class.
  • Every integer scalar and array reports its exact signed class and width (int8 through uint64) from value or coherent resident metadata without reading or converting payload elements.
  • RunMat does not yet materialize full MATLAB matlab.metadata.Class object properties such as PropertyList, MethodList, or SuperclassList; those remain part of the broader metadata-object work.

Examples

Get metadata for an object

obj = Point();
mc = metaclass(obj)

Expected output:

mc = <class Point>

Text inputs describe text classes

mc = metaclass('Point')

Expected output:

mc = <class char>

Use the question-mark operator for class-name metadata

mc = ?Point

Expected output:

mc = <class Point>

Using metaclass with coding agents

Open a RunMat example with live inputs, then ask the agent to explain how metaclass changes the result.

Run a small metaclass example, explain the result, then change one input and compare the output.

FAQ

Does metaclass("Point") look up the Point class?⌄

No. This follows MATLAB semantics: text passed to metaclass is a text value, so RunMat returns metadata for string or char. Use ?Point or classref("Point") for class-name metadata.

Is the result a full MATLAB metadata object?⌄

Not yet. RunMat returns its existing ClassRef metadata token. Static member and method dispatch already use this token, but full metadata property enumeration is still tracked by the object/type-introspection umbrella.

Related Introspection functions

addprop · assignin · class · clear · clearAllMemoizedCaches · clearCache · clearvars · dbclear · dbstack · dbstatus · dbtype · evalc · feval · findprop · getcallinfo · inputParser · isa · ischar · isdeployed · iskeyword · ismethod · isobject · isstring · isUnderlyingType · keyboard · matlab.metadata.DynamicProperty.delete · memoize · mislocked · mlock · munlock · namelengthmax · narginchk · nargoutchk · notify · onCleanup · stats · str2func · superclasses · underlyingType · verLessThan · version · which · who · whos

Open-source implementation

Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how metaclass is executed, line by line, in Rust.

  • View the source for metaclass in Rust on GitHub
  • Learn how the RunMat runtime works
  • Found a bug? Open an issue with a minimal reproduction.

About RunMat

RunMat is an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 license.

  • RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
  • Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.

Getting started · Benchmarks · Pricing

Download RunMat

Download RunMat for full performance, or use RunMat in your browser for zero setup.

Download RunMatOpen Sandbox
On this page
  • Syntax
  • Inputs
  • Returns
  • How metaclass works
  • Examples
  • Get metadata for an object
  • Text inputs describe text classes
  • Use the question-mark operator for class-name metadata
  • Using metaclass with coding agents
  • FAQ
  • Related Introspection functions
  • Open-source implementation
  • About RunMat