Q:

get elements of array matlab

Indicating indexes between ([]) retrieves corresponding values in Matlab. 
array_borders=array([1: end])
As end defines size of the array, retrieve first and last border values of array
0

New to Communities?

Join the community