Computes the size of a variable along a given dimension. The syntax
for its use is
y = end(x,dim,subindexes)
where x is the array to be analyzed, dim is the dimension along
which to compute the end, and subindexes indicates how many dimensions
are involved in the end calculation.