01The requirement: mathematics without writing Fortran
By the 1970s numerical analysts had built reliable Fortran libraries: EISPACK for eigenvalues and LINPACK for linear equations, funded by the US National Science Foundation. But using them meant writing a program, compiling, linking, running a batch job and reading a printout. Cleve Moler, a professor at the University of New Mexico who had worked on both libraries, wanted his students to try matrix ideas interactively. Around 1979 he wrote a small Fortran program, MATLAB ("matrix laboratory"), in which you type A = [1 2; 3 4] and eig(A) and see the answer at once. Copies spread among universities for free.
| Requirement | Why | What MATLAB-style tools offered |
|---|---|---|
| Try ideas quickly | The compile–run cycle killed exploration | An interactive command window |
| Trustworthy numerics | Home-made solvers give wrong answers on hard problems | Proven algorithms (LINPACK, later LAPACK) inside every command |
| Plot results | Engineers think in graphs | One-line plotting |
| Domain-specific functions | Signal processing, control, statistics, optimisation | Toolboxes written by experts |
| Simulate dynamic systems | Controllers and plants are differential equations | Simulink block diagrams and code generation |
02From classroom tool to industry standard
03Try it: what x = A\b does
MATLAB's backslash solves linear equations — for example the forces in a frame, or nodal displacements in finite element analysis (Episode 29). Inside, it uses Gaussian elimination with partial pivoting (LU decomposition) from LINPACK/LAPACK. Edit the 3×3 system and step through.
04Contemporaries and rivals
| Program | Year | Model | Strength |
|---|---|---|---|
| Mathcad | 1986 | Paid (MathSoft → PTC) | Equations written as on paper, with units checked automatically — loved for design calculations; now Mathcad Prime with a free Express edition |
| Maple | 1982 / 1988 | Paid (Waterloo Maple) | Symbolic algebra: exact integrals and formulas |
| Mathematica | 1988 | Paid (Wolfram Research) | Symbolic and numeric computing with notebooks |
| MATRIXx, Xmath | 1980s | Paid (Integrated Systems) | Control-system rival to MATLAB/Simulink; later bought by National Instruments |
| IDL | 1977 | Paid | Array language for astronomy and remote sensing |
| Scilab + Xcos | 1994 | Free, open source (INRIA, France) | MATLAB-like language with a Simulink-like block editor |
| GNU Octave | 1993 (1.0 in 1994) | Free, open source (GPL) | Highly compatible with MATLAB scripts |
| Python: NumPy, SciPy, Matplotlib | 2006 → | Free, open source | General-purpose language with scientific libraries; now the main alternative |
| Julia | 2012 | Free, open source (MIT) | Speed of C with MATLAB-like syntax |
05Try it: integrating a dynamic system
A Simulink diagram of a spring–mass–damper is two integrators in a loop. The solver steps time forward. Simple methods (Euler) drift or blow up with large steps; MATLAB's ode45 uses an adaptive Runge–Kutta method. Change the step size and compare with the exact answer.
06Version explorer
Blue chips: MATLAB and Simulink. Amber chips: rivals and open alternatives.
07Today: licences and choices
- MATLAB licences are per user or network (concurrent); each toolbox costs extra. Campus-wide licences are common in universities, and a Home licence exists for personal use.
- Free but closed: MATLAB Online basic access, Mathcad Express, Wolfram Engine for developers.
- Open source: Octave runs most MATLAB scripts unchanged; Scilab/Xcos covers basic Simulink-style work; Python covers almost everything except Simulink's code generation and certified toolchains.
- Interoperability: MATLAB can call Python and vice versa; data move via
.mat(HDF5-based since v7.3), CSV or HDF5.
08Getting the tools safely
| Program | Official site | winget command |
|---|---|---|
| GNU Octave | octave.org | winget install GNU.Octave |
| Scilab | scilab.org | winget install Scilab.Scilab |
| Python + Spyder | python.org, spyder-ide.org | winget install Python.Python.3.13; pip install numpy scipy matplotlib |
| MATLAB | mathworks.com | Through your organisation's licence |
"Free MATLAB" downloads on other sites are cracked copies and a common route for malware. Confirm winget IDs with winget search.
09Lessons for engineers
- Use proven numerical libraries. Never write your own matrix inverse for real work.
- Watch the condition number. A nearly singular system gives answers that look precise but are not.
- Check the solver step. A simulation that "works" may be the numerical method, not the physics.
- Keep scripts, not screenshots. A script is the record of how a result was obtained.
Sources & further reading
- C. Moler and J. Little, "A history of MATLAB", Proc. ACM on Programming Languages 4 (HOPL), 2020.
- MathWorks — R2026a release highlights
- Wikipedia — MATLAB · Simulink · LINPACK
- GNU Octave · Scilab · NumPy · Julia
- Wikipedia — PTC Mathcad · Wolfram Mathematica