RunMat
GitHub

mesh — Render MATLAB-compatible mesh (wireframe) plots.

mesh(X, Y, Z) draws a wireframe surface. RunMat reuses the SurfacePlot renderer with wireframe mode enabled and no fill, matching MATLAB's default mesh aesthetics.

How mesh works in RunMat

  • X and Y are axis vectors; Z must contain length(X) * length(Y) values in column-major order.
  • Surfaces default to a Turbo colormap with wireframe = true and faceted shading.
  • Single-precision gpuArray height maps stream directly into the shared WebGPU renderer; other inputs gather automatically.

These functions work well alongside mesh. Each page has runnable examples you can try in the browser.

bar, contour, contourf, hist, meshc, plot, scatter, scatter3, stairs, surf, surfc

Open-source implementation

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

About RunMat

RunMat is an open-source runtime that executes MATLAB-syntax code — faster, on any GPU, with no license required.

  • Simulations that took hours now take minutes. RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed.
  • Start running code in seconds. Open the browser sandbox or download a single binary. No license server, no IT ticket, no setup.
  • A full development environment. GPU-accelerated 2D and 3D plotting, automatic versioning on every save, and a browser IDE you can share with a link.

Getting started · Benchmarks · Pricing

Try RunMat — free, no sign-up

Start running MATLAB code immediately in your browser.