


@info:
! @deftypefn {Function File} {@var{us} =} subsref (@var{ts},S)
! @anchor{@dynDate/subsref}
! @sp 1
! Overloads the subsref method for the Dynare dates class (@ref{dynDate}).
! @sp 2
! @strong{Inputs}
! @sp 1
! @table @ @var
! @item A
! Dynare date object instantiated by @ref{dynDate}.
! @item S
! Matlab's structure array S with two fields, type and subs. The type field is string containing '()', '@{@}', or '.', where '()' specifies
! integer subscripts, '@{@}' specifies cell array subscripts, and '.' specifies subscripted structure fields. The subs field is a cell array
! or a string containing the actual subscripts (see matlab's documentation).
! @end table
! @sp 1
! @strong{Outputs}
! @sp 1
! @table @ @var
! @item B
! A matlab object (public member of the @ref{dynDate} object).
! @end table
! @sp 2
! @strong{This function is called by:}
! @sp 2
! @strong{This function calls:}
! @sp2
!
! @end deftypefn
@eod:

0001 function B = subsref(A,S) 0002 0003 %@info: 0004 %! @deftypefn {Function File} {@var{us} =} subsref (@var{ts},S) 0005 %! @anchor{@dynDate/subsref} 0006 %! @sp 1 0007 %! Overloads the subsref method for the Dynare dates class (@ref{dynDate}). 0008 %! @sp 2 0009 %! @strong{Inputs} 0010 %! @sp 1 0011 %! @table @ @var 0012 %! @item A 0013 %! Dynare date object instantiated by @ref{dynDate}. 0014 %! @item S 0015 %! Matlab's structure array S with two fields, type and subs. The type field is string containing '()', '@{@}', or '.', where '()' specifies 0016 %! integer subscripts, '@{@}' specifies cell array subscripts, and '.' specifies subscripted structure fields. The subs field is a cell array 0017 %! or a string containing the actual subscripts (see matlab's documentation). 0018 %! @end table 0019 %! @sp 1 0020 %! @strong{Outputs} 0021 %! @sp 1 0022 %! @table @ @var 0023 %! @item B 0024 %! A matlab object (public member of the @ref{dynDate} object). 0025 %! @end table 0026 %! @sp 2 0027 %! @strong{This function is called by:} 0028 %! @sp 2 0029 %! @strong{This function calls:} 0030 %! @sp2 0031 %! 0032 %! @end deftypefn 0033 %@eod: 0034 0035 % Copyright (C) 2011 Dynare Team 0036 % stephane DOT adjemian AT univ DASH lemans DOT fr 0037 % 0038 % This file is part of Dynare. 0039 % 0040 % Dynare is free software: you can redistribute it and/or modify 0041 % it under the terms of the GNU General Public License as published by 0042 % the Free Software Foundation, either version 3 of the License, or 0043 % (at your option) any later version. 0044 % 0045 % Dynare is distributed in the hope that it will be useful, 0046 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0047 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0048 % GNU General Public License for more details. 0049 % 0050 % You should have received a copy of the GNU General Public License 0051 % along with Dynare. If not, see <http://www.gnu.org/licenses/>. 0052 0053 B = builtin('subsref', A, S);