Closed nicobast closed 1 year ago
As we have just 300Hz data, I would like to avoid downsampling. However when setting:
op.downsampleRate = 1
the following error is given:
Error using downsample Expected PHASE to be a scalar with value <= 0. Error in downsample (line 51) validateattributes(phase,{'numeric'},{'scalar','nonempty','integer','nonnegative','<=',N-1},'downsample','PHASE'); Error in gainFinder (line 110) predT2(kk,:) = downsample(predT,d.downsampleRate,1); Error in fitModel (line 41) [d, temp] = gainFinder(d,ii,op); % ii index is for runs
Error using downsample Expected PHASE to be a scalar with value <= 0.
Error in downsample (line 51) validateattributes(phase,{'numeric'},{'scalar','nonempty','integer','nonnegative','<=',N-1},'downsample','PHASE');
Error in gainFinder (line 110) predT2(kk,:) = downsample(predT,d.downsampleRate,1);
Error in fitModel (line 41) [d, temp] = gainFinder(d,ii,op); % ii index is for runs
Fixed. Let me know if you still have issues with this.
great, your fix has solved it
As we have just 300Hz data, I would like to avoid downsampling. However when setting:
op.downsampleRate = 1
the following error is given: