Skip to content

ndi.viz.fun.stimuluspurpose2stimulusresponsequery

  STIMULUSPURPOSE2STIMULUSRESPONSEQUERY - get query for stimulus response documents based on purpose

  Q = STIMULUSPURPOSE2STIMULUSRESPONSEQUERY(S, STIMULUS_PURPOSE)

  Return an ndi.query object that will find stimulus_response documents for the 
  stimulator epoch with purpose name STIMULUS_PURPOSE.
  If no stimulus purpose match is found, then q is ndi.query('','isa','nothing') .

  Example:
     q = ndi.viz.fun.stimuluspurpose2stimulusresponsequery(S, 'Purpose: Assessing contrast tuning');