Skip to content

vis.revcorr.hartley_stimulus_resampled_time

  HARTLEY_STIMULUS_RESAMPLED_TIME - generate a space-time picture of the stimulus in a time interval

  [B,T] = vis.revcorr.hartley_stimulus_resampled_time(M, HARTLEY_STIMULUS_PARAMETERS, HARTLEY_STIMULUS_TIMES, T0, T1, NUMTIMESTEPS)

  Inputs:
   M - the size of the Hartley stimulus 
   HARTLEY_STIMULUS_PARAMETERS, a structure with fields
     s - an array of the values of S for each stimulus
     kx_v - an array of the values of kx for each stimulus
     ky_v - an array of the values of ky for each stimulus
   HARTLEY_STIMULUS_TIMES - an array of the stimulus times in seconds
   T0 - the time to begin the reconstruction
   T1 - the time to stop the reconstruction
   NUMTIMESTEPS - the number of timesteps to be used in the reconstruction

  OUTPUTS:
   B - an NUMTIMESTEPS array
     B(:,:,s) is the stimulus that was on the screen at time sample s where
     the time of stimulus sample s is t0 + (s-1)*deltaT.
   T = the time of each reconstructed stimulus sample in the same units as
      T0, T1, HARTLEY_STIMULUS_TIMES