defining arrays in 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
a = [1 2 3; 4 5 6; 7 8 10]
% 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
a = [1 2 3; 4 5 6; 7 8 10]