%% Brace Indexing
% This example shows how MATLAB® calls subsref for indexing expression that use braces.

C = {"one", 2, 'three'};
C{1:2}

% The syntax, C{1:2}, results in a call to [c1,c2] = subsref(C,S) where S.type is '{}' and S.subs is {[1 2]}.
% Copyright 2018 The MathWorks, Inc.