Ron Bakker/MathLabHelp
Open MathLab ↗

MathLab help

Introduction

MathLab is a MATLAB-style lab that runs entirely in your browser. You write code, it plots, animates, plays sound, reads data and exports figures for papers — and any figure can be shared as a link or embedded on another website.

Your first script

Open MathLab, type this in the editor and press Run (or Ctrl/⌘ + Enter). Every code block in this help has a Try it button that opens it in the editor; the figure underneath is the live result.

x = linspace(0, 4*pi, 400);
plot(x, sin(x) .* exp(-x/6), 'LineWidth', 2)
title('A damped oscillation'), xlabel('x'), grid on
Try it ↗

What's in the window

Where to go next

Sharing and embedding

Share / embed gives you a link to your script and an <iframe> for other websites. The script travels inside the link itself — nothing is stored on a server. Embedded figures stay live: animations play, 3D plots rotate and sounds can be played.

How MathLab differs from MATLAB

Most everyday MATLAB code runs unchanged, but MathLab is smaller: