MATLAB: A is a matrix , what does this statement A([1,end],[1,end]) mean

arrayfunctionindexingmatrix

The result of this command gives the 4 corners of the matrix, but can't figure out how that command works

Best Answer

That's equivalent to:
[A(1,1), A(1,end);...
A(1,end), A(end,end)]