matlab array variable length code example
Example: matlab length of array
% To get the size of an array, use 'size()'
A = [1, 2, 3, 4; 4, 5, 6, 7];
s = size(A); % [2, 4]
% You can pick a specific dimension
s = size(A, 2); % 4
% To get the size of an array, use 'size()'
A = [1, 2, 3, 4; 4, 5, 6, 7];
s = size(A); % [2, 4]
% You can pick a specific dimension
s = size(A, 2); % 4