Check out example codes for "matlab matrix". It will help you in understanding the concepts better.

Code Example 1

% To create a matrix in MatLab:

a = [1 2 3; 4 5 6; 7 8 10]
% 1     2     3
% 4     5     6
% 7     8    10

Learn ReactJs, React Native from akashmittal.com