get elements of array matlab 1

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

Here is what the above code is Doing:
1. Create an array of numbers from 1 to 10
2. Create a variable called array_borders and assign it the first and last values of the array
3. Print the variable array_borders

Similar Posts