Back to the main page.
Bug 2818 - ft_interpolatenan - Specialcase error
| Status |
ASSIGNED |
| Reported |
2015-01-30 18:00:00 +0100 |
| Modified |
2017-01-31 14:14:43 +0100 |
| Product: |
FieldTrip |
| Component: |
external |
| Version: |
unspecified |
| Hardware: |
PC |
| Operating System: |
Windows |
| Importance: |
P5 major |
| Assigned to: |
Robert Oostenveld |
| URL: |
|
| Tags: |
|
| Depends on: |
|
| Blocks: |
|
| See also: |
http://bugzilla.fieldtriptoolbox.org/show_bug.cgi?id=3238 |
Neo - 2015-01-30 18:00:57 +0100
Version 20150115
During execution of ft_interpolatenan with an artifact matrix that had artifacts at the end sample point of trial, the sample_window resulted in an error "Exceeded Matrix dimensions".
Upon inspection, it was found that [dum, idx_end_c] = find(diff(replace,[],2)==-1) failed to capture the end point of the sample with this code.
My matrix had a size 46080 samples. At a point of time, during debugging I found this as the cause of the error:
idx_start_c =
45223
45223
45223
45223
45270
45270
45270
45270
46050
46050
46050
46050
idx_end_c =
45250
45250
45250
45250
45394
45394
45394
45394
Notice that the idx_end_c failed to capture 46080 (the artifact was at the very end of the trial as well).
Please let me know if I made a mistake in interpreting this error. Thanks.