varargin{:} in OLCorrectDirection lines 92 and 94 prevents OLCorrectPrimaryValues from running
Expected a string scalar or character vector for the parameter name, instead the input type was 'double'.
Error in OLDirection_bipolar/OLCorrectDirection (line 92)
[correctedCombinedPrimaryValuesPositive, correctionDataPositive] =
OLCorrectPrimaryValues(nominalCombinedPrimaryValuesPositive,direction.calibration,oneLight,radiometer,varargin{:});
Removing varargin{:} for the call to OLCorrectPrimaryValues allows code to run but remotes the ability to use all the arguments
varargin{:} in OLCorrectDirection lines 92 and 94 prevents OLCorrectPrimaryValues from running
Removing varargin{:} for the call to OLCorrectPrimaryValues allows code to run but remotes the ability to use all the arguments