Q:

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
3

New to Communities?

Join the community