# MATLAB

MATLAB is a programming language created in 1984 by Cleve Moler.

MATLAB (matrix laboratory) is a multi-paradigm numerical computing environment. A proprietary programming language 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, including C, C++, C#, Java, Fortran and Python. Although MATLAB is intended primarily for numerical computing, an optional toolbox uses the MuPAD symbolic engine, allowing access to symbolic computing abilities. Read more on Wikipedia...

#16on PLDB 38Years Old 2.7mUsers

#### Example code from hello-world:

```disp('Hello World') ```

#### Example code from the Hello World Collection:

```% Hello World in MATLAB. disp('Hello World'); ```

#### Example code from Linguist:

```function [ d, d_mean, d_std ] = normalize( d ) d_mean = mean(d); d = d - repmat(d_mean, size(d,1), 1); d_std = std(d); d = d./ repmat(d_std, size(d,1), 1); end ```

#### Example code from Wikipedia:

```[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})')```

#### Language features

Feature Supported Example Token
Print() Debugging disp
`% A comment`
%
Iterators
```% Define an array of integers
myArray = [1,3,5,7,11,13];

for n = myArray
% ... do something with n
disp(n)  % Echo integer to Command Window
end```
File Imports
```import pkg.cls1
import pkg.pkfcn```
Type Casting
`b = cast(a, 'like', p)`
Constructors
```%{
A comment.
%}```
%{ %}
`% This is a comment`
Strings
`"hello world"`
'
Semantic Indentation ϴ

#### Trending MATLAB repos on GitHub

repo stars description
deep-photo-styletransfer 9275 "Code and data for paper ""Deep Photo Style Transfer"": https://arxiv.org/abs/1703.07511"
Algorithms_MathModels 376 【国赛】【美赛】数学建模相关算法 MATLAB实现
machine-learning-programming-assignments-coursera-andrew-ng 218 Solutions to Andrew NG's machine learning course on Coursera

title author year reviews ratings rating
MATLAB Programming for Engineers Stephen J. Chapman 1999 6 114 4.10
MATLAB for Neuroscientists: An Introduction to Scientific Computing in MATLAB Pascal Wallisch 2008 0 32 3.94
MATLAB for Engineers Holly Moore 2010 1 37 3.95
Getting Started with MATLAB: A Quick Introduction for Scientists and Engineers Rudra Pratap 2009 4 72 4.01
MATLAB for Control Engineers Katsuhiko Ogata 2007 0 38 4.00
Essential MATLAB for Engineers and Scientists Brian D. Hahn 1997 3 43 3.86
Introduction to MATLAB for Engineers William J. Palm III 1998 1 17 3.88
An Engineers Guide to MATLAB Edward B. Magrab 2000 0 7 4.29
Essentials of MATLAB Programming Stephen J. Chapman 2005 0 17 4.00
Getting Started with MATLAB 7: A Quick Introduction for Scientists and Engineers Rudra Pratap 2005 5 105 4.03

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub