1Indicating indexes between ([]) retrieves corresponding values in Matlab.
2array_borders=array([1 end])
3As end defines size of the array, retrieve first and last border values of array
4even_values=array(2:2:end)
5Retrieve only second elements of array, from secon with 2 step iteration
6increase until end of array.
7first_3_values=array(1:3)
8Retrieve only first 3 elements of array.