Reverting temporary fix.
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -279,7 +279,7 @@ for i0=1:size(t,1) | @@ -279,7 +279,7 @@ for i0=1:size(t,1) | ||
279 | GoodEvent=[]; | 279 | GoodEvent=[]; |
280 | for i1=1:length(ev) | 280 | for i1=1:length(ev) |
281 | disp(ev(i1)) | 281 | disp(ev(i1)) |
282 | - if strcmp(EventType,strvcat(ev(i1).type)) && ev(i1).time > timeonset(D) | 282 | + if strcmp(EventType,strvcat(ev(i1).type)) |
283 | GoodEvent=[GoodEvent i1]; | 283 | GoodEvent=[GoodEvent i1]; |
284 | ind=indsample(D,ev(i1).time); | 284 | ind=indsample(D,ev(i1).time); |
285 | ind1=[ind+4*StartInterpolation]; | 285 | ind1=[ind+4*StartInterpolation]; |
@@ -389,7 +389,7 @@ for i0=1:size(t,1) | @@ -389,7 +389,7 @@ for i0=1:size(t,1) | ||
389 | n=0; | 389 | n=0; |
390 | for i1=1:length(ev) | 390 | for i1=1:length(ev) |
391 | % if ~isempty(intersect(EventType,ev(i1).value)) | 391 | % if ~isempty(intersect(EventType,ev(i1).value)) |
392 | - if strcmp(EventType,ev(i1).type) && ev(i1).time > timeonset(D) | 392 | + if strcmp(EventType,ev(i1).type) |
393 | n=n+1; | 393 | n=n+1; |
394 | ind=indsample(D,ev(i1).time); | 394 | ind=indsample(D,ev(i1).time); |
395 | ind1=[ind1 ind+StartInterpolation(i2,n)]; | 395 | ind1=[ind1 ind+StartInterpolation(i2,n)]; |
@@ -415,7 +415,7 @@ for i0=1:size(t,1) | @@ -415,7 +415,7 @@ for i0=1:size(t,1) | ||
415 | PeakMax=0.003; %Could be defined as argument | 415 | PeakMax=0.003; %Could be defined as argument |
416 | Artefact=[]; | 416 | Artefact=[]; |
417 | for i1=1:length(ev) | 417 | for i1=1:length(ev) |
418 | - if strcmp(EventType,strvcat(ev(i1).type)) && ev(i1).time > timeonset(D) | 418 | + if strcmp(EventType,strvcat(ev(i1).type)) |
419 | T2=indsample(D,S.StartInterpolation+ev(i1).time); | 419 | T2=indsample(D,S.StartInterpolation+ev(i1).time); |
420 | T3=indsample(D,S.EndInterpolation+ev(i1).time); | 420 | T3=indsample(D,S.EndInterpolation+ev(i1).time); |
421 | T4=indsample(D,PeakMin+ev(i1).time); | 421 | T4=indsample(D,PeakMin+ev(i1).time); |
@@ -461,7 +461,7 @@ for i0=1:size(t,1) | @@ -461,7 +461,7 @@ for i0=1:size(t,1) | ||
461 | %Apply correction | 461 | %Apply correction |
462 | n=0; | 462 | n=0; |
463 | for i1=1:length(ev) | 463 | for i1=1:length(ev) |
464 | - if strcmp(EventType,strvcat(ev(i1).type)) && ev(i1).time > timeonset(D) | 464 | + if strcmp(EventType,strvcat(ev(i1).type)) |
465 | T2=indsample(D,S.StartInterpolation+ev(i1).time); | 465 | T2=indsample(D,S.StartInterpolation+ev(i1).time); |
466 | T3=indsample(D,S.EndInterpolation+ev(i1).time); | 466 | T3=indsample(D,S.EndInterpolation+ev(i1).time); |
467 | if ~isnan(T3) | 467 | if ~isnan(T3) |
-
Please register or login to post a comment