%% Dot Indexing
% This example shows how MATLAB® calls subsref for indexing expression that use dot notation.

A = struct('number',10);
A.number

% The syntax A.number results in a call to B = subsref(A,S) where S.Type is '.' and S.subs is 'number'.
% Copyright 2018 The MathWorks, Inc.