simplify.education

scientific software · BEGINNER LESSON

MATLAB

MATLAB is a numerical computing environment and proprietary programming language. Its name comes from “matrix laboratory,” because it is built around arrays and matrix-style computation.

What it is and what it is used for

MATLAB is a numerical computing environment and a proprietary programming language developed by MathWorks. It is used for quantitative data analysis and for tasks such as signal analysis, image processing, financial calculations, symbolic math, and graphics. The core idea is that it helps people work with numbers, arrays, and data in a flexible way. [0,1]

[1] Matlab - Sherlock OnDemand [2] Brain lab: Matlab tutorial - MIT

How it works

The name “matrix laboratory” reflects MATLAB’s matrix-oriented design. In MATLAB, variables are arrays by default, and most work is done by combining built-in, precompiled functions. It is described as a high-level language, which means it is designed to be easier and faster to write than lower-level code for many analysis tasks. Users can extend it by creating M-files, which are files that contain MATLAB commands or functions. [1,2]

[2] Brain lab: Matlab tutorial - MIT [3] Matlab, Introduction - MIT

Running MATLAB and its desktop

On some systems, MATLAB uses the Java Virtual Machine (JVM), which is software that helps run the desktop interface and display graphics. The -nojvm option starts MATLAB without the JVM. That can reduce memory use and speed startup, but it also limits some features. [0]

[1] Matlab - Sherlock OnDemand

Limits and tradeoffs

The sources note that MATLAB can be less efficient than languages such as C++ in speed and memory use. That limitation is often acceptable for analysis work, especially while developing new ideas, and some code can later be transferred into compiled software if faster execution is needed. Free alternatives such as Octave, R, Julia, and Python can replace MATLAB in many situations. [0,1]

[1] Matlab - Sherlock OnDemand [2] Brain lab: Matlab tutorial - MIT

SEE THE IDEA

MATLAB as a data-analysis workflow

Data move through array-based variables and functions to produce calculated results and visual output.

MATLAB supports a workflow where data are entered, processed by functions, organized in files, and then viewed as results or graphics.

TRY IT YOURSELF

Test your understanding

Choose an answer, then check the explanation.

0 of 3 questions answered
01 Which statement best describes MATLAB according to the sources?
02 A student wants to save memory and start MATLAB faster, but can accept fewer features. Which option matches the sources?
03 A lab group needs repeatable analysis steps in a file. Which MATLAB file type is described as containing a set of MATLAB commands?

PUT IT TOGETHER

Match each concept to its meaning

Drag a label onto its description, or select a label and then select a description. This also works with a keyboard.

Sources and further reading

This general lesson was generated from public source material. It explains a concept; it does not interpret a private paper or provide medical advice.

  1. Matlab - Sherlock OnDemand
  2. Brain lab: Matlab tutorial - MIT
  3. Matlab, Introduction - MIT
Apply this to a paper →