e01.org

MATLAB

MATLAB (Matrix Laboratory) is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages. Although MATLAB is intended primarily for numeric computing, an optional toolbox uses the MuPAD symbolic engine allowing access to symbolic computing abilities. An additional package, Simulink, adds graphical multi-domain simulation and model-based design for dynamic and embedded systems. , MATLAB has more than four million users worldwide. They come from various backgrounds of engineering, science, and economics. As of 2025, more than 6,500 global colleges and universities use MATLAB to support instruction and research.

MATLAB (Matrix Laboratory) is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages. Although MATLAB is intended primarily for numeric computing, an optional toolbox uses the MuPAD symbolic engine allowing access to symbolic computing abilities. An additional package, Simulink, adds graphical multi-domain simulation and model-based design for dynamic and embedded systems. , MATLAB has more than four million users worldwide. They come from various backgrounds of engineering, science, and economics. As of 2025, more than 6,500 global colleges and universities use MATLAB to support instruction and research. ==History== ===Origins=== MATLAB was invented by mathematician and computer programmer Cleve Moler. The idea for MATLAB was based on his 1960s PhD thesis. Moler became a math professor at the University of New Mexico and started developing MATLAB for his students as a hobby. He developed MATLAB's initial linear algebra programming in 1967 with his one-time thesis advisor, George Forsythe. This was followed by Fortran code for linear equations in 1971. Before version 1.0, MATLAB "was not a programming language; it was a simple interactive matrix calculator. There were no programs, no toolboxes, no graphics. And no ODEs or FFTs." The first early version of MATLAB was completed in the late 1970s. The software was disclosed to the public for the first time in February 1979 at the Naval Postgraduate School in California. Early versions of MATLAB were simple matrix calculators with 71 pre-built functions. At the time, MATLAB was distributed for free to universities. Moler would leave copies at universities he visited and the software developed a strong following in the math departments of university campuses. In the 1980s, Cleve Moler met John N. Little. They decided to reprogram MATLAB in C and market it for the IBM desktops that were replacing mainframe computers at the time. John Little and programmer Steve Bangert re-programmed MATLAB in C, created the MATLAB programming language, and developed features for toolboxes. ===Commercial development=== MATLAB was first released as a commercial product in 1984 at the Automatic Control Conference in Las Vegas. MathWorks, Inc. was founded to develop the software and the MATLAB programming language was released. The first MATLAB sale was the following year, when Nick Trefethen from the Massachusetts Institute of Technology bought ten copies. By the end of the 1980s, several hundred copies of MATLAB had been sold to universities for student use. The software was popularized largely thanks to toolboxes created by experts in various fields for performing specialized mathematical tasks. Many of the toolboxes were developed as a result of Stanford students that used MATLAB in academia, then brought the software with them to the private sector. Over time, MATLAB was re-written for early operating systems created by Digital Equipment Corporation, VAX, Sun Microsystems, and for Unix PCs. Version 3 was released in 1987. The first MATLAB compiler was developed by Stephen C. Johnson in the 1990s. In 2000, MathWorks added a Fortran-based library for linear algebra in MATLAB 6, replacing the software's original LINPACK and EISPACK subroutines that were in C. MATLAB's Parallel Computing Toolbox was released at the 2004 Supercomputing Conference and support for graphics processing units (GPUs) was added to it in 2010. ===Recent history=== Some especially large changes to the software were made with version 8 in 2012. The user interface was reworked and Simulink's functionality was expanded. By 2016, MATLAB had introduced several technical and user interface improvements, including the MATLAB Live Editor notebook, and other features. ==Release history== For a complete list of changes of both MATLAB an official toolboxes, check MATLAB previous releases. ==Syntax== The MATLAB application is built around the MATLAB programming language. Common usage of the MATLAB application involves using the "Command Window" as an interactive mathematical shell or executing text files containing MATLAB code. disp('Hello, world!') It displays like so: Hello, world! ===Variables=== Variables are defined using the assignment operator, = . MATLAB is a weakly typed programming language because types are implicitly converted. It is an inferred typed language because variables can be assigned without declaring their type, except if they are to be treated as symbolic objects, and that their type can change. Values can come from constants, from computation involving values of other variables, or from the output of a function. For example: >> x = 17 x = 17 >> x = 'hat' x = hat >> x = [3*4, pi/2] x = 12.0000 1.5708 >> y = 3*sin(x) y = -1.6097 3.0000 >> array = 1:2:9 array = 1 3 5 7 9 defines a variable named array (or assigns a new value to an existing variable with the name array ) which is an array consisting of the values 1, 3, 5, 7, and 9. That is, the array starts at 1 (the initial value), increments with each step from the previous value by 2 (the increment value), and stops once it reaches (or is about to exceed) 9 (the terminator value). The increment value can actually be left out of this syntax (along with one of the colons), to use a default value of 1. >> ari = 1:5 ari = 1 2 3 4 5 assigns to the variable named ari an array with the values 1, 2, 3, 4, and 5, since the default value of 1 is used as the increment. Indexing is one-based, which is the usual convention for matrices in mathematics, unlike zero-based indexing commonly used in other programming languages such as C, C++, and Java. Matrices can be defined by separating the elements of a row with blank space or comma and using a semicolon to separate the rows. The list of elements should be surrounded by square brackets [] . Parentheses () are used to access elements and subarrays (they are also used to denote a function argument list). >> A = [16, 3, 2, 13 ; 5, 10, 11, 8 ; 9, 6, 7, 12 ; 4, 15, 14, 1] A = 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1 >> A(2,3) ans = 11 Sets of indices can be specified by expressions such as 2:4 , which evaluates to [2, 3, 4] . For example, a submatrix taken from rows 2 through 4 and columns 3 through 4 can be written as: >> A(2:4,3:4) ans = 11 8 7 12 14 1 A square identity matrix of size n can be generated using the function eye , and matrices of any size with zeros or ones can be generated with the functions zeros and ones , respectively. >> eye(3,3) ans = 1 0 0 0 1 0 0 0 1 >> zeros(2,3) ans = 0 0 0 0 0 0 >> ones(2,3) ans = 1 1 1 1 1 1 Transposing a vector or a matrix is done either by the function transpose or by adding dot-prime after the matrix (without the dot, prime will perform conjugate transpose for complex arrays): >> A = [1 ; 2], B = A.', C = transpose(A) A = 1 2 B = 1 2 C = 1 2 >> D = [0, 3 ; 1, 5], D.' D = 0 3 1 5 ans = 0 1 3 5 Most functions accept arrays as input and operate element-wise on each element. For example, mod(2*J,n) will multiply every element in J by 2, and then reduce each element modulo n. MATLAB does include standard for and while loops, but (as in other similar applications such as APL and R), using the vectorized notation is encouraged and is often faster to execute. The following code, excerpted from the function magic.m, creates a magic square M for odd values of n (MATLAB function meshgrid is used here to generate square matrices and containing ): [J,I] = meshgrid(1:n); A = mod(I + J - (n + 3) / 2, n); B = mod(I + 2 * J - 2, n); M = n * A + B + 1; object.method(); can alter any member of object only if object is an instance of a reference class, otherwise value class methods must return a new instance if it needs to modify the object. An example of a simple class is provided below: classdef Hello methods function greet(obj) disp('Hello!') end end end When put into a file named hello.m , this can be executed with the following commands: >> x = Hello(); >> x.greet(); Hello! x = 0:pi/100:2*pi; y = sin(x); plot(x,y) produces the following figure of the sine function: MATLAB supports three-dimensional graphics as well: MATLAB supports developing graphical user interface (GUI) applications. UIs can be generated either programmatically or using visual design environments such as GUIDE and App Designer. ==Relations to US sanctions== In 2020, MATLAB withdrew services from the Harbin Institute of Technology and Harbin Engineering University as a result of expanded US export restrictions to entities affiliated with the PLA. The universities said this will be responded to by increased use of open-source alternatives and by developing domestic alternatives. ==References==

References

  1. ^ "The L-Shaped Membrane" . MathWorks. 2003. Archived from the original on April 23, 2019 . Retrieved February 7, 2014 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  2. ^ "MATLAB App Designer" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  3. ^ "Toolbox Distribution" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  4. ^ "MATLAB App Installer File" . MathWorks. Archived from the original on January 17, 2014 . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  5. ^ "Support Package Installation" . MathWorks. Archived from the original on October 6, 2014 . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  6. ^ "RunMat: Free Runtime for MATLAB Code (Browser & Desktop)" . RunMat . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  7. ^ "An interview with CLEVE MOLER Conducted by Thomas Haigh On 8 and 9 March, 2004 Santa Barbara, California" (PDF) . Computer History Museum. Archived from the original (PDF) on December 27, 2014 . Retrieved December 6, 2016 . So APL, Speakeasy, LINPACK, EISPACK, and PL0 were the predecessors to MATLAB. Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  8. ^ "Matrices and Arrays - MATLAB & Simulink" . www.mathworks.com . Retrieved May 21, 2022 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  9. ^ "Company Overview" (PDF) . Mathworks . September 2025. Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  10. ^ "A Brief History of MATLAB" . www.mathworks.com . Retrieved September 4, 2021 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  11. ^ "System Requirements and Platform Availability" . MathWorks. Archived from the original on October 13, 2016 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  12. ^ "The New Look and Feel of MATLAB and Simulink" (PDF) . MathWorks . Retrieved June 12, 2026 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  13. ^ "MATLAB Previous releases" . MathWorks . Retrieved December 3, 2024 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  14. ^ "MATLAB Documentation" . MathWorks. Archived from the original on June 19, 2024 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  15. ^ "Comparing MATLAB with Other OO Languages" . MATLAB . MathWorks. Archived from the original on October 29, 2013 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  16. ^ "Create Symbolic Variables and Expressions" . Symbolic Math Toolbox . MathWorks. Archived from the original on July 12, 2013 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  17. ^ "Matrix Indexing" . MathWorks. Archived from the original on August 9, 2018 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  18. ^ "Platform Road Map for MATLAB and Simulink Product Families" . de.mathworks.com . Retrieved December 22, 2021 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  19. ^ "Structures" . MathWorks. Archived from the original on July 13, 2019 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  20. ^ "Generate Field Names from Variables" . MathWorks. Archived from the original on December 5, 2019 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  21. ^ "Case and Space Sensitivity" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  22. ^ "Function Handles" . MathWorks. Archived from the original on July 19, 2020 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  23. ^ "Anonymous Functions" . MathWorks. Archived from the original on July 28, 2013 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  24. ^ "Nested Functions" . MathWorks. Archived from the original on July 19, 2020 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  25. ^ "Object-Oriented Programming" . MathWorks. Archived from the original on December 5, 2019 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  26. ^ "Comparing Handle and Value Classes" . MathWorks. Archived from the original on December 5, 2019 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  27. ^ "MATLAB GUI" . MathWorks. April 30, 2011. Archived from the original on January 17, 2022 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  28. ^ "Create a Simple GUIDE GUI" . MathWorks. Archived from the original on October 5, 2014 . Retrieved August 14, 2014 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  29. ^ "Protect Your Source Code" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  30. ^ "MATLAB App Designer" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  31. ^ "Application Programming Interfaces to MATLAB" . MathWorks. Archived from the original on September 15, 2017 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  32. ^ "Create MEX-Files" . MathWorks. Archived from the original on March 3, 2014 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  33. ^ Spielman, Dan (February 10, 2004). "Connecting C and Matlab" . Yale University, Computer Science Department . Retrieved May 20, 2008 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  34. ^ "MATLAB Engine for Python" . MathWorks. Archived from the original on May 16, 2015 . Retrieved June 13, 2015 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  35. ^ "Call Python Libraries" . MathWorks. Archived from the original on December 5, 2019 . Retrieved June 13, 2015 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  36. ^ "External Programming Language Interfaces" . MathWorks. Archived from the original on March 11, 2014 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  37. ^ "Call Perl script using appropriate operating system executable" . MathWorks. Archived from the original on December 5, 2019 . Retrieved November 7, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  38. ^ "MATLAB Builder JA" . MathWorks. Archived from the original on June 4, 2011 . Retrieved June 7, 2010 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  39. ^ Altman, Yair (April 14, 2010). "Java-to-Matlab Interface" . Undocumented Matlab. Archived from the original on September 5, 2015 . Retrieved June 7, 2010 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  40. ^ "MEX Platform Compatibility" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  41. ^ Kaplan, Joshua. "matlabcontrol JMI" . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  42. ^ Germundsson, Roger (September 30, 1998). "MaMa: Calling MATLAB from Mathematica with MathLink" . Wolfram Research . Wolfram Library Archive. Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  43. ^ rsmenon; szhorvat (2013). "MATLink: Communicate with MATLAB from Mathematica" . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  44. ^ Weitzel, Michael (September 1, 2006). "MathML import/export" . MathWorks - File Exchange. Archived from the original on February 25, 2011 . Retrieved August 14, 2013 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  45. ^ "US military ban locks two Chinese universities out of popular software" . South China Morning Post . June 12, 2020 . Retrieved November 6, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  46. ^ "MAT-File Versions" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  47. ^ "Save Figure to Reopen in MATLAB Later" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  48. ^ "Live Code File Format (.mlx)" . MathWorks . Retrieved November 1, 2019 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  49. ^ Cho, M.J.; Martinez, W.L. (2014). Statistics in MATLAB: A Primer . Chapman & Hall/CRC Computer Science & Data Analysis. CRC Press. ISBN 978-1-4665-9657-3 . Retrieved September 17, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  50. ^ a b c d e f g h Chonacky, N.; Winch, D. (2005). "Reviews of Maple, Mathematica, and Matlab: Coming Soon to a Publication Near You". Computing in Science & Engineering . 7 (2). Institute of Electrical and Electronics Engineers (IEEE): 9– 10. Bibcode : 2005CSE.....7b...9C . doi : 10.1109/mcse.2005.39 . ISSN 1521-9615 . S2CID 29660034 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  51. ^ Gatto, Marino; Rizzoli, Andrea (1993). "Review of MATLAB, Version 4.0". Natural Resource Modeling . 7 (1). Wiley: 85– 88. Bibcode : 1993NRM.....7...85G . doi : 10.1111/j.1939-7445.1993.tb00141.x . ISSN 0890-8575 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  52. ^ Bezanson, Jeff; Karpinski, Stefan; Shah, Viral; Edelman, Alan (February 14, 2012). "Why We Created Julia" . Julia Language . Retrieved December 1, 2016 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  53. ^ LoTurco, Lori (January 28, 2020). "Accelerating the pace of engineering" . MIT News . Massachusetts Institute of Technology . Retrieved September 16, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  54. ^ "MATLAB Engine API for Java" . MathWorks. Archived from the original on September 19, 2020 . Retrieved September 15, 2016 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  55. ^ a b c d e f g Moler, Cleve; Little, Jack (June 12, 2020). "A history of MATLAB" . Proceedings of the ACM on Programming Languages . 4 (HOPL). Association for Computing Machinery (ACM): 1– 67. doi : 10.1145/3386331 . ISSN 2475-1421 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  56. ^ Eaton, John W. (May 21, 2001). "Octave: Past, Present, and Future" (PDF) . Texas-Wisconsin Modeling and Control Consortium . Archived from the original (PDF) on August 9, 2017 . Retrieved December 1, 2016 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  57. ^ a b Press, CRC (2008). Solving Applied Mathematical Problems with MATLAB . CRC Press. p. 6. ISBN 978-1-4200-8251-7 . Retrieved September 16, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  58. ^ "History" . Scilab. Archived from the original on December 1, 2016 . Retrieved December 1, 2016 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  59. ^ Tranquillo, J.V. (2011). MATLAB for Engineering and the Life Sciences . Synthesis digital library of engineering and computer science. Morgan & Claypool Publishers. ISBN 978-1-60845-710-6 . Retrieved September 17, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
  60. ^ Woodford, C.; Phillips, C. (2011). Numerical Methods with Worked Examples: Matlab Edition . SpringerLink : Bücher. Springer Netherlands. p. 1. ISBN 978-94-007-1366-6 . Retrieved September 16, 2020 . Wikipedia revision 1377025298, retrieved 2026-11-21 · 1795215600.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"MATLAB". 1790512601. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1377025298

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy