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
    • addpoints
    • ancestor
    • animatedline
    • area
    • axes
    • axis
    • bar
    • barh
    • box
    • caxis
    • cla
    • clf
    • clim
    • colorbar
    • colorcube
    • colormap
    • colororder
    • contour
    • contour3
    • contourf
    • copyobj
    • daspect
    • datacursormode
    • dataTipTextRow
    • errorbar
    • fcontour
    • figure
    • fill
    • fill3
    • findobj
    • fsurf
    • gca
    • gcf
    • get
    • gobjects
    • grid
    • groot
    • heatmap
    • hgload
    • hgsave
    • hidden
    • hist
    • histogram
    • histogram2
    • hold
    • image
    • imagesc
    • imshow
    • legend
    • line
    • linkaxes
    • loglog
    • mesh
    • meshc
    • openfig
    • opengl
    • pan
    • parula
    • patch
    • pie
    • plot
    • plot3
    • plotmatrix
    • plotyy
    • polarhistogram
    • polarplot
    • polarscatter
    • print
    • quiver
    • quiver3
    • ribbon
    • saveas
    • savefig
    • scatter
    • scatter3
    • semilogx
    • semilogy
    • set
    • sgtitle
    • shading
    • sphere
    • stackedplot
    • stairs
    • stem
    • subplot
    • subtitle
    • suptitle
    • surf
    • surfc
    • text
    • textscatter
    • textscatter3
    • title
    • triplot
    • view
    • waitbar
    • wordcloud
    • xlabel
    • xlim
    • xline
    • xscale
    • xtickangle
    • xtickformat
    • xticklabels
    • xticks
    • ylabel
    • ylim
    • yline
    • yscale
    • ytickangle
    • ytickformat
    • yticklabels
    • yticks
    • zlabel
    • zlim
    • zoom

gobjects — Create an array of invalid graphics-handle placeholders.

gobjects creates arrays suitable for preallocating graphics handles. RunMat represents graphics handles as numeric values, so placeholders are stored as invalid numeric handle sentinels that can later be overwritten by real plotting handles.

Syntax

h = gobjects()
h = gobjects(sz...)

Inputs

NameTypeRequiredDefaultDescription
szSizeArgVariadic—Output dimensions, either as separate scalar sizes or a size vector.

Returns

NameTypeDescription
hAnyGraphics-placeholder array; RunMat currently uses NaN numeric handle slots as its bounded representation.

Errors

IdentifierWhenMessage
RunMat:gobjects:InvalidSizeA size is nonnumeric, nonintegral, logical, resident, or has invalid vector geometry.gobjects: invalid size argument
RunMat:gobjects:AllocationLimitThe requested shape exceeds addressable or allocatable placeholder storage.gobjects: requested placeholder array is too large

How gobjects works

  • gobjects() returns a 1-by-1 placeholder handle array.
  • gobjects(n) returns an n-by-n placeholder handle array.
  • gobjects(m,n,...) returns a placeholder handle array with the requested dimensions.
  • gobjects([m n ...]) accepts a numeric size vector.
  • Placeholder entries are not valid handles: isgraphics and ishandle return false for them.
  • Assigned plotting handles retain normal numeric-handle fast paths and can be validated elementwise through isgraphics or ishandle.

Does RunMat run gobjects on the GPU?

gobjects performs no provider dispatch and does not gather or upload GPU arrays.

GPU memory and residency

gobjects always returns host-side placeholder handles because graphics state is host-managed.

Examples

Preallocate an array and fill one graphics handle

h = gobjects(2,1);
h(1) = plot(1:3);
isgraphics(h)

Expected output:

ans = [true; false]

Use a size vector

h = gobjects([1 3]);
numel(h)

Expected output:

ans = 3

Using gobjects with coding agents

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

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

FAQ

Are gobjects placeholders valid graphics handles?⌄

No. They are invalid placeholders used for preallocation until a real graphics handle is assigned into the array.

Does gobjects create figures or axes?⌄

No. It only allocates placeholder handle values; plotting functions create the actual graphics objects.

Related Plotting functions

2D Charts

area · bar · errorbar · heatmap · hist · histogram · loglog · pie · plot · scatter · semilogx · semilogy · stairs · stem

3D & Surface

contour · contour3 · contourf · mesh · meshc · plot3 · quiver · scatter3 · surf · surfc

Images

image · imagesc · imshow

Axes & Layout

axis · box · grid · sgtitle · subplot · title · view · zlabel

Appearance

colorbar · colormap · legend · shading

Handle Access

gca · gcf · get · set

Other

addpoints · ancestor · animatedline · axes · barh · caxis · cla · clf · clim · colorcube · colororder · copyobj · daspect · datacursormode · dataTipTextRow · fcontour · figure · fill · fill3 · findobj · fsurf · groot · hgload · hgsave · hidden · histogram2 · hold · line · linkaxes · openfig · opengl · pan · parula · patch · plotmatrix · plotyy · polarhistogram · polarplot · polarscatter · print · quiver3 · ribbon · saveas · savefig · sphere · stackedplot · subtitle · suptitle · text · textscatter · textscatter3 · triplot · waitbar · wordcloud · xlabel · xlim · xline · xscale · xtickangle · xtickformat · xticklabels · xticks · ylabel · ylim · yline · yscale · ytickangle · ytickformat · yticklabels · yticks · zlim · zoom

Open-source implementation

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

  • View the source for gobjects 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 gobjects works
  • Does RunMat run gobjects on the GPU?
  • GPU memory and residency
  • Examples
  • Preallocate an array and fill one graphics handle
  • Use a size vector
  • Using gobjects with coding agents
  • FAQ
  • Related Plotting functions
  • 2D Charts
  • 3D & Surface
  • Images
  • Axes & Layout
  • Appearance
  • Handle Access
  • Other
  • Open-source implementation
  • About RunMat