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
    • isvarname
    • mustBeA
    • mustBeColumn
    • mustBeFile
    • mustBeFinite
    • mustBeFloat
    • mustBeFolder
    • mustBeGreaterThan
    • mustBeGreaterThanOrEqual
    • mustBeInRange
    • mustBeInteger
    • mustBeLessThan
    • mustBeLessThanOrEqual
    • mustBeMember
    • mustBeNegative
    • mustBeNonempty
    • mustBeNonmissing
    • mustBeNonNan
    • mustBeNonnegative
    • mustBeNonpositive
    • mustBeNonsparse
    • mustBeNonzero
    • mustBeNonzeroLengthText
    • mustBeNumeric
    • mustBeNumericOrLogical
    • mustBePositive
    • mustBeReal
    • mustBeScalarOrEmpty
    • mustBeSparse
    • mustBeText
    • mustBeTextScalar
    • mustBeUnderlyingType
    • mustBeValidVariableName
    • mustBeVector
    • namedargs2cell
    • validateFunctionSignaturesJSON

namedargs2cell — Convert a scalar name-value struct into an alternating name/value cell row.

namedargs2cell(S) preserves scalar struct field order and returns {name1, value1, name2, value2, ...} for name-value forwarding patterns.

Syntax

C = namedargs2cell(S)

Inputs

NameTypeRequiredDefaultDescription
AAnyYes—Value to validate.

Returns

NameTypeDescription
CAnyCell row vector of alternating field names and values.

Errors

IdentifierWhenMessage
RunMat:validators:ValidationFailedA value does not satisfy the requested validator.argument validation failed
RunMat:validators:InvalidArgumentA validator receives an unsupported argument count or argument type.invalid argument validation input
RunMat:validators:ProviderOwnershipMismatchA resident value has no exact owning provider.argument validation: no acceleration provider owns the input
RunMat:validators:ProviderPayloadMismatchA resident value carries contradictory physical class metadata.argument validation: resident input has contradictory physical class metadata

How namedargs2cell works

  • The input must be a scalar structure; top-level integer and resident numeric inputs reject without conversion or provider access.
  • Field names retain structure insertion order and field values are moved unchanged into alternating name/value cells.
  • All eight integer classes stored in fields retain their exact class and payload, including wide int64 and uint64 values.

Example

Basic use

namedargs2cell(x)

Expected output:

Result depends on input value.

Using namedargs2cell with coding agents

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

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

Related Argument Validation functions

isvarname · mustBeA · mustBeColumn · mustBeFile · mustBeFinite · mustBeFloat · mustBeFolder · mustBeGreaterThan · mustBeGreaterThanOrEqual · mustBeInRange · mustBeInteger · mustBeLessThan · mustBeLessThanOrEqual · mustBeMember · mustBeNegative · mustBeNonempty · mustBeNonmissing · mustBeNonNan · mustBeNonnegative · mustBeNonpositive · mustBeNonsparse · mustBeNonzero · mustBeNonzeroLengthText · mustBeNumeric · mustBeNumericOrLogical · mustBePositive · mustBeReal · mustBeScalarOrEmpty · mustBeSparse · mustBeText · mustBeTextScalar · mustBeUnderlyingType · mustBeValidVariableName · mustBeVector · validateFunctionSignaturesJSON

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
  • Errors
  • How namedargs2cell works
  • Example
  • Basic use
  • Using namedargs2cell with coding agents
  • Related Argument Validation functions
  • About RunMat