%% Parentheses Indexing
% This example shows how MATLAB® calls subsref for the following indexing expression.

A = magic(5);
A(1:2,:)

% The syntax, A(1:2,:), results in a call to B = subsref(A,S) where S is a 1-by-1 structure where S.type is '()' and S.subs is {1:2,':'}. The colon character indicates a colon used as a subscript.
% Copyright 2018 The MathWorks, Inc.