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
    • damp
    • db
    • dcgain
    • feedback
    • impulse
    • isstable
    • lqr
    • nyquist
    • pole
    • pzmap
    • rlocus
    • ss
    • step
    • stepinfo
    • tf
    • zero

zero — Return zeros of SISO transfer-function models.

zero(sys) returns the roots of the numerator polynomial for a supported SISO tf model.

Syntax

z = zero(sys)

Inputs

NameTypeRequiredDefaultDescription
sysAnyYes—SISO tf model.

Returns

NameTypeDescription
zAnyZeros of the SISO tf model as a column vector.

Errors

IdentifierWhenMessage
RunMat:zero:InvalidModelInput system is not a valid SISO tf object.zero: invalid model
RunMat:zero:UnsupportedModelModel form is unsupported.zero: unsupported model
RunMat:zero:InvalidArgumentModel metadata or arguments are malformed.zero: invalid argument
RunMat:zero:InternalRoot calculation or output construction failed.zero: internal error

How zero works

  • Supports SISO tf objects.
  • Returns an N x 1 real vector when all zeros are real.
  • Returns an N x 1 complex vector when any zero has a nonzero imaginary part.
  • Static-gain models return an empty zero vector.
  • ss transmission zeros are not implemented yet; use tf models for this builtin.

GPU memory and residency

zero returns host-resident vectors.

Example

Second-order zeros

H = tf([1 3 2], [1 4]);
zero(H)

Expected output:

ans = [-1; -2]

How RunMat validates zero

zero validates the input model and computes numerator roots through the shared control polynomial root path. Tests cover real, complex-conjugate, and static-gain zero vectors plus VM integration.

  • Implementation: `crates/runmat-runtime/src/builtins/control/zero.rs`

See Correctness & Trust for the full methodology and coverage table.

Using zero with coding agents

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

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

FAQ

Does zero cancel pole-zero pairs?⌄

No. It returns roots of the stored numerator polynomial for the supplied transfer-function model.

Is this the same as zeros?⌄

No. zero analyzes control models. zeros constructs numeric arrays.

Related Control functions

damp · db · dcgain · feedback · impulse · isstable · lqr · nyquist · pole · pzmap · rlocus · ss · step · stepinfo · tf

Open-source implementation

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

  • View the source for zero 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
  • Errors
  • How zero works
  • GPU memory and residency
  • Example
  • Second-order zeros
  • How RunMat validates zero
  • Using zero with coding agents
  • FAQ
  • Related Control functions
  • Open-source implementation
  • About RunMat