%% Constructing a Simple Matrix
% The simplest way to create a matrix in MATLAB is to use the matrix constructor operator, []. Create a row in the matrix by entering elements (shown as E below) within the brackets. Separate each element with a comma or space:
% row = [E1, E2, ..., Em]          row = [E1 E2 ... Em]
% For example, to create a one row matrix of five elements, type

A = [12 62 93 -8 22];

% To start a new row, terminate the current row with a semicolon:
% A = [row1; row2; ...; rown]
% This example constructs a 3 row, 5 column (or 3-by-5) matrix of numbers. Note that all rows must have the same number of elements:

A = [12 62 93 -8 22; 16 2 87 43 91; -4 17 -72 95 6]

% The square brackets operator constructs two-dimensional matrices only, (including 0-by-0, 1-by-1, and 1-by-n matrices).
% When entering signed numbers into a matrix, make sure that the sign immediately precedes the numeric value. Note that while the following two expressions are equivalent,

7 -2 +5
7 - 2 + 5

% the next two are not:

[7 -2 +5] 
[7 - 2 + 5]

% Copyright 2018 The MathWorks, Inc.