@@ -204,7 +204,7 @@ function spikes(action)
204
204
if isfield(data ,' pR' ); pR = data .pR ; end
205
205
data= struct ;
206
206
data.zs= zs ;
207
- if exist(' pR' ,' var' ); data.pR = pR ; else ; data.pR= []; end
207
+ if exist(' pR' ,' var' ); data.pR = pR ; else data .pR = []; end
208
208
data.meta= meta ;
209
209
data.info= info ;
210
210
data.filetype= t ;
@@ -360,10 +360,10 @@ function spikes(action)
360
360
data .pR .parse ;
361
361
end
362
362
end
363
- if isfield(data .pR .rE .tS ,' name' ) && ~isempty(regexpi(data .pR .rE .tS .name ,' two-figure-ground' ));
364
- inputdlg({' Enter First Variable Position:' ,' Enter Second Variable Position:' },...
365
- ' Two Figure Trial Correction:' ,[1 20 ],{' 1' ,' 1' });
366
- end
363
+ % if isfield(data.pR.rE.tS,'name') && ~isempty(regexpi(data.pR.rE.tS.name,'two-figure-ground'));
364
+ % inputdlg({'Enter First Variable Position:','Enter Second Variable Position:'},...
365
+ % 'Two Figure Trial Correction:',[1 20],{'1','1'});
366
+ % end
367
367
data.zipload= false ;
368
368
data.filetype= ' plx' ;
369
369
data.sourcepath = [pn fn ];
@@ -491,9 +491,11 @@ function spikes(action)
491
491
data.modtime= data .meta .modtime ;
492
492
tempfreq = [];
493
493
for jj = 1 : length(data .info )
494
- rx= regexp(data.info{jj },' Stim1:.+Drift.+Period:.+\((?<freq>\d.\d).+\)' ,' names' );
495
- if ~isempty(rx )
496
- tempfreq = [tempfreq str2num(rx .freq )];
494
+ if size(data.info{jj },1 ) == 1
495
+ rx= regexp(data.info{jj },' Stim1:.+Drift.+Period:.+\((?<freq>\d.\d).+\)' ,' names' );
496
+ if ~isempty(rx )
497
+ tempfreq = [tempfreq str2num(rx .freq )];
498
+ end
497
499
end
498
500
end
499
501
if isempty(tempfreq )
0 commit comments