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 does the mesh function behave in MATLAB / RunMat?
XandYare axis vectors;Zmust containlength(X) * length(Y)values in column-major order.- Surfaces default to a Turbo colormap with
wireframe = trueand faceted shading. - Single-precision gpuArray height maps stream directly into the shared WebGPU renderer; other inputs gather automatically.
Source & Feedback
- Source code: `crates/runmat-runtime/src/builtins/plotting/ops/mesh.rs`
- Found a bug? Open an issue with a minimal reproduction.