arrayin matlab code example
Example 1: matlab matrix
% 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
Example 2: matlab 1d matrix declarationg
z = 5×1
0
0
0
0
0