1A = [16 5 9; 4 2 11; 7 14 9]; % Create matrix
2
3A(2,3) % Extract the element in row 2, column 3
4ans = 11
5
6A(1:2,2:3) % Extract elements in rows 1 and 2, and columns 2 and 3
7ans = 5 9
8 2 11
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