i have an arry lets say
A=[2 3 4 5 6 7 8 9]
i want to get middle point
like B=[5]
how to do it?
i have an arry lets say
A=[2 3 4 5 6 7 8 9]
i want to get middle point
like B=[5]
how to do it?
Try to use end
to automatically obtain the index of the last entry, and use ceil
to round up the half length when the length is not even
B=A(ceil(end/2))