← Education / Interactive learning

Interactive visualization

Explore a surface in 3D.

Drag to rotate, scroll to zoom, and hover to inspect values. Load data exported from a MATLAB surface plot.

Loading the illustrative surface…

Illustrative single-machine energy landscape. Files you select stay in your browser.

Use your own MATLAB plot

The MATLAB export helper writes the x, y, and z data from one numeric Cartesian surface to JSON. Load that file using the control above, or include it in your website.

export_surface_for_website(ax, "my-surface.json")

For MATLAB R2026a and later, supported figures can also be exported directly to interactive HTML:

exportgraphics(fig, "my-interactive-plot.html")

That HTML can be embedded in a website. Built-in rotate, zoom, and pan are supported for appropriate axes; custom callbacks and MATLAB calculations do not run in the exported figure. This JSON viewer supports one rectangular surface; it does not reproduce every MATLAB figure type or formatting choice.

MathWorks interactive HTML documentation ↗