% Example code for accessing entries or parts of matrices
A = gallery('minij',5), % One of MATLAB's built in matrices
% acess operations
i = 2; j=3; A(i,j), % access individual entry 
A([1,2],[3,4]), % bracket operator with ranges: sub-matrices
A(end-1:end,1:2), 
A(:,3), A(2,:), % access to columns and rows


    

