Arrays in Matlab
All data in Matlab is actually an array � a 1- or 2-dimensional table of numbers. (We only consider 1-D arrays in this lecture.)
A single value, called a scalar, is simply an array of size 1.
To construct a 1-D array, list its elements surrounded by square brackets.
y = [4 -5 10 0 5.2]
x = [�5 sqrt(2) 17 2^3]
4.0000 1.0000 2.7183 1.0000