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
    • array2table
    • array2timetable
    • categorical
    • cell2table
    • dictionary
    • groupsummary
    • head
    • height
    • iscategorical
    • isordinal
    • istable
    • istimetable
    • ordinal
    • pivot
    • rowfilter
    • struct2table
    • table
    • table2array
    • table2cell
    • table2struct
    • table2timetable
    • timerange
    • timetable
    • timetable2table
    • uitable
    • vartype
    • width

timerange — Create a timetable row-time range selector object.

timerange(startTime, endTime) returns a row-time selector with Start, End, and Inclusivity properties.

Syntax

S = timerange(startTime, endTime, intervalType)

Inputs

NameTypeRequiredDefaultDescription
startTimeAnyYes—Beginning of the selected row-time interval.
endTimeAnyYes—End of the selected row-time interval.
intervalTypeStringScalarNoopenrightOne of openright, openleft, open, or closed.

Returns

NameTypeDescription
SAnyTimetable row-time subscript selector.

How timerange works

  • The optional third argument is "openright", "openleft", "open", or "closed"; the default is "openright", which includes the start and excludes the end.
  • Datetime and duration bounds are the compatibility forms. Numeric bounds are available in runmat compatibility mode for timetables that use numeric row times.
  • Numeric integer bounds and numeric integer row times are ordered exactly without conversion to double.
  • Datetime-unit and event-filter overloads are not yet implemented.

Example

Select A Half-Open Time Range

firstTime = datetime(2026, 7, 1);
lastTime = datetime(2026, 8, 1);
rows = timerange(firstTime, lastTime);
July = TT(rows, :)

Expected output:

July contains rows at or after July 1 and before August 1

Using timerange with coding agents

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

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

Related Table functions

array2table · array2timetable · categorical · cell2table · dictionary · groupsummary · head · height · iscategorical · isordinal · istable · istimetable · ordinal · pivot · rowfilter · struct2table · table · table2array · table2cell · table2struct · table2timetable · timetable · timetable2table · uitable · vartype · width

Open-source implementation

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

  • View the source for timerange 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 timerange works
  • Example
  • Select A Half-Open Time Range
  • Using timerange with coding agents
  • Related Table functions
  • Open-source implementation
  • About RunMat