So I am trying to understand what length is all about. Say we have vector A = [1,2,3,4,5,6,7,8] and when we code up length(A) it spits out 8 for the # of elements.
How does the length command work. Ive been thinking its a for loop like
A = [could be any size];
for i = A % takes each element of a
i = i+1; adds 1 for each new element thus counting the elements
end
Please help my understanding
