Get sessdata

From Bcontrol
Revision as of 00:12, 26 May 2009 by Jerlich (talk | contribs) (New page: <pre> [S, extra_args]=get_sessdata(varargin) [S, extra_args]=get_sessdata(sessid) [S, extra_args]=get_sessdata(ratname,experimenter, date) [S, extra_args]=get_sessdata(ratname,ex...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  [S, extra_args]=get_sessdata(varargin)
  [S, extra_args]=get_sessdata(sessid)
  [S, extra_args]=get_sessdata(ratname,experimenter, date)
  [S, extra_args]=get_sessdata(ratname,experimenter, daterange)
 
  A frontend to get data from the sessions table that does some nice input
  parsing.   Useful to use in other functions to avoid having to parse
  inputs.  If you pass it all the args from a parent function the leftover
  args are returned as extra_args.  For a good example of this see
  psychoplot_delori.m (in ExperPort/Analysis/SameDifferent)
 
  S by default contains fields: sessid, sessiondate, and protocol_data
 
  sessid can be a single sessid or a vector of sessids
  date should be of the form "YYYY-MM-DD" or a relative date like -5
  daterange should be a numeric vector in relative form like -10:-1 or a
  cell array of date string of the from "YYYY-MM-DD"