first value of array matlab code example Example: matlab index last element first_3_values=array(end)