Skip to content

subsref

  SUBSREF method overloaded for tstamp objects.

  READING TSTAMP PROPERTIES:
  tstamp objects can be read or passed as though they were simple double
  precision matrices using the '()' subscriptor. Thus,
  obj(), obj(:), obj(1:10), obj(2,1:5,10:20) etc return double precision
  results after applying the scale and offset to the appropriate elements
  of obj.Map.Data.Stamps and transforming them via obj.Func i.e.
        a=obj(...) is equivalent to
        a=func(double(obj.Map.Data.Stamps(...))*obj.Scale+obj.Shift)
  It follows that you can not use this syntax to access arrays of
  tstamps e.g. x(2)=tstamp() is invalid (although you can access cell
  arrays of tstamps).

  Examples:
  A=OBJ();
  A=OBJ(1:10);
  A=FUNCTION(OBJ());

  Field access with '.'  works as with other objects e.g.
  obj.Map.Data.Stamps returns the stored result in its native class.

  Subscription of fields using '()' also works normally, thus
        a=obj.Map.Data.Stamps(1:10)
  returns the first 10 elements of data (in the native format without
  scaling etc.).

  obj without subscription assigns/passes the object see TSTAMP/SUBSASGN
  for further details [e.g. A=FILTFILT(OBJ);]

  obj at the command prompt displays a summary of the contents of obj

  See also TSTAMP/SUBSASGN, TSTAMP/GET

  Author: Malcolm Lidierth
  Copyright © The Author & King's College London 2006