MATLAB
Adapted from Wikipedia ยท Adventurer experience
MATLAB (Matrix Laboratory) is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. It helps people work with numbers, especially groups of numbers called matrices. MATLAB makes it easy to create graphs and solve problems.
One great thing about MATLAB is that it can work with symbols. This is thanks to a toolbox that uses the MuPAD symbolic engine. This lets users do more advanced math, like solving equations. There is also a package called Simulink that helps users build models to see how things change over time. This is useful for designing machines and systems.
As of 2020[update], MATLAB has more than four million users worldwide. It is used in many colleges and universities to help teach and do research. Whether you are studying engineering, science, or economics, MATLAB can be a powerful tool to help understand complex ideas and solve real-world problems.
History
MATLAB was invented by mathematician and computer programmer Cleve Moler. His idea for MATLAB came from his 1960s PhD thesis. Moler started creating MATLAB for his students when he was a math teacher at the University of New Mexico. The first version of MATLAB was finished in the late 1970s and was shared with everyone in 1979 at the Naval Postgraduate School in California. Early versions were simple tools for working with numbers and matrices.
In 1984, MATLAB became a product that people could buy, and MathWorks, Inc. was started to keep making it better. Over time, MATLAB got new features and tools added by experts. By 2016, MATLAB had many improvements to help users work more easily.
Release history
You can see all the updates and changes to MATLAB and its tools. This helps people know what new features and improvements came with each version.
| Name of release | MATLAB | Simulink, Stateflow (MATLAB attachments) | Year |
|---|---|---|---|
| Volume 8 | 5.0 | 1996 | |
| Volume 9 | 5.1 | 1997 | |
| R9.1 | 5.1.1 | 1997 | |
| R10 | 5.2 | 1998 | |
| R10.1 | 5.2.1 | 1998 | |
| R11 | 5.3 | 1999 | |
| R11.1 | 5.3.1 | 1999 | |
| R12 | 6.0 | 2000 | |
| R12.1 | 6.1 | 2001 | |
| R13 | 6.5 | 2002 | |
| R13SP1 | 6.5.1 | 2003 | |
| R13SP2 | 6.5.2 | ||
| R14 | 7 | 6.0 | 2004 |
| R14SP1 | 7.0.1 | 6.1 | |
| R14SP2 | 7.0.4 | 6.2 | 2005 |
| R14SP3 | 7.1 | 6.3 | |
| R2006a | 7.2 | 6.4 | 2006 |
| R2006b | 7.3 | 6.5 | |
| R2007a | 7.4 | 6.6 | 2007 |
| R2007b | 7.5 | 7.0 | |
| R2008a | 7.6 | 7.1 | 2008 |
| R2008b | 7.7 | 7.2 | |
| R2009a | 7.8 | 7.3 | 2009 |
| R2009b | 7.9 | 7.4 | |
| R2010a | 7.10 | 7.5 | 2010 |
| R2010b | 7.11 | 7.6 | |
| R2011a | 7.12 | 7.7 | 2011 |
| R2011b | 7.13 | 7.8 | |
| R2012a | 7.14 | 7.9 | 2012 |
| R2012b | 8.0 | 8.0 | |
| R2013a | 8.1 | 8.1 | 2013 |
| R2013b | 8.2 | 8.2 | |
| R2014a | 8.3 | 8.3 | 2014 |
| R2014b | 8.4 | 8.4 | |
| R2015a | 8.5 | 8.5 | 2015 |
| R2015b | 8.6 | 8.6 | |
| R2016a | 9.0 | 8.7 | 2016 |
| R2016b | 9.1 | 8.8 | |
| R2017a | 9.2 | 8.9 | 2017 |
| R2017b | 9.3 | 9.0 | |
| R2018a | 9.4 | 9.1 | 2018 |
| R2018b | 9.5 | 9.2 | |
| R2019a | 9.6 | 9.3 | 2019 |
| R2019b | 9.7 | 10.0 | |
| R2020a | 9.8 | 10.1 | 2020 |
| R2020b | 9.9 | 10.2 | |
| R2021a | 9.10 | 10.3 | 2021 |
| R2021b | 9.11 | 10.4 | |
| R2022a | 9.12 | 10.5 | 2022 |
| R2022b | 9.13 | 10.6 | |
| R2023a | 9.14 | 10.7 | 2023 |
| R2023b | 23.2 | 23.2 | |
| R2024a | 24.1 | 24.1 | 2024 |
| R2024b | 24.2 | 24.2 | |
| R2025a | 25.1 | 25.1 | 2025 |
| R2025b | 25.2 | 25.2 |
Syntax
The MATLAB application uses the MATLAB programming language. You can use the Command Window to run math commands or write code in text files.
MATLAB makes it easy to work with numbers and data. You can create variables without needing to say what type of information they will hold first. For example, you can set a variable x to hold the number 17, or even change it to hold a word like "hat".
MATLAB works well with arrays and matrices. You can create an array like 1:2:9, which gives you the numbers 1, 3, 5, 7, and 9. Matrices can be made by putting numbers in rows and columns, and you can easily pick out single numbers or groups of numbers from them.
Graphics and graphical user interface programming
MATLAB makes it easy to create graphs and pictures from data. For example, you can use a simple command to draw a smooth wave called a sine function. MATLAB can also make 3D pictures to show more complex data.
MATLAB helps people build special windows on a computer screen called graphical user interfaces, or GUIs. These can be made by writing code or by using special tools that let you design them visually.
[X,Y] = meshgrid(-10:0.25:10,-10:0.25:10);
f = sinc(sqrt((X/pi).^2+(Y/pi).^2));
mesh(X,Y,f);
axis([-10 10 -10 10 -0.3 1])
xlabel('{\bfx}')
ylabel('{\bfy}')
zlabel('{\bfsinc} ({\bfR})')
hidden off
| [X,Y] = meshgrid(-10:0.25:10,-10:0.25:10);
f = sinc(sqrt((X/pi).^2+(Y/pi).^2));
surf(X,Y,f);
axis([-10 10 -10 10 -0.3 1])
xlabel('{\bfx}')
ylabel('{\bfy}')
zlabel('{\bfsinc} ({\bfR})')
|
| This code produces a wireframe 3D plot of the two-dimensional unnormalized sinc function: | This code produces a surface 3D plot of the two-dimensional unnormalized sinc function: |
MATLAB and other languages
MATLAB can work with functions and programs written in other languages like C or Fortran. It creates special files called MEX files to help share data between MATLAB and these languages. MATLAB also supports connecting with Python, Perl, Java, ActiveX, and .NET.
You can use MATLAB with tools like Maple or Mathematica for more advanced math tasks. MATLAB also has ways to bring in and send out data using MathML.
Relations to US sanctions
In 2020, MATLAB stopped working with two universities in China because of rules from the United States. The universities decided to use more open-source tools and make their own alternatives.
This article is a child-friendly adaptation of the Wikipedia article on MATLAB, available under CC BY-SA 4.0.
Images from Wikimedia Commons. Tap any image to view credits and license.
Safekipedia