Browse Source

updated chromatic integration stimulus function to return stimulus order as an output

MHK 3 years ago
parent
commit
074842b738
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Stimulation/Chromatic_Integration_Stimulus.m

+ 1 - 2
Stimulation/Chromatic_Integration_Stimulus.m

@@ -28,7 +28,6 @@ function varargout = Chromatic_Integration_Stimulus(varargin)
 % 
 %===================================================================================
 
-
 para            =   read_stimulus_parameters(varargin{:});
 if para.help, return; end
 
@@ -95,7 +94,7 @@ end
 % setting up output to get the stimulus order contrast orders
 collistorderout     =   collistorderout';     % transposing to make vectorization (:) easier
 collistorderout     =   collistorderout(:);
-out.numberContrastsShown = floor((framecounter-1)/(para.stimduration+para.preframes));
+out.numberContrastsShown    =   floor((framecounter-1)/(para.stimduration+para.preframes));
 collistorderout     =   collistorderout(1:out.numberContrastsShown);
 out.stimulusOrder   =   transpose(collistorderout);
 % to get contrasts between input values