Learn
Tutorials
Short lessons that build on each other. Every step is a live example: read it, look at the figure, then press Try it to change it yourself.
- Your first plotMake a vector of numbers, plot a function, label it properly and export it — the basic loop you will use for everything else.Beginner · 5 min · 5 steps
- Vectors, matrices and indexingEverything in MathLab is a matrix. Learn to build them, combine them and pick out exactly the elements you need.Beginner · 10 min · 5 steps
- Surfaces in 3DFrom a formula to a shaded, rotatable 3D surface — and the same data as a contour map.Beginner · 8 min · 4 steps
- Bring it to life: animationsCall animate(seconds) and your whole script re-runs every frame with t set to the time. Anything that depends on t moves.Intermediate · 10 min · 4 steps
- Solving differential equationsode45 solves dy/dt = f(t, y) with an adaptive Runge–Kutta method. Learn single equations, systems and phase portraits.Intermediate · 12 min · 4 steps
- Fitting data for a paperSimulate measurements, fit a model, show uncertainty and residuals, and report the numbers.Intermediate · 12 min · 4 steps
- Writing your own functionsShort one-liners with @(x), longer functions with function … end, and how to pass them to integral, fzero and friends.Intermediate · 8 min · 4 steps
- Finding and fixing mistakesMathLab checks your code as you type, explains errors in plain language, and can replay a run step by step.Beginner · 8 min · 4 steps
- Figures for papers and slidesPick a figure style for a journal, thesis or slide deck, adjust fonts and colours the MATLAB way, and export a PDF or SVG at the right physical size.Beginner · 6 min · 4 steps
- Making soundTurn signals into sound: tones, chords, envelopes and stereo — and save them as WAV files.Beginner · 5 min · 3 steps
- Working with dataRead tables from files and the web, explore the columns, fit a trend and save the result.Intermediate · 8 min · 4 steps
- Working with imagesRead an image, look at its pixels and colour channels, clean it up with filters, find edges, fix its contrast and count the objects in it.Intermediate · 10 min · 6 steps