-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi TESA´s Team,
I am trying to run some code in Matlab. I always get errors when I want to interpolate. I don't know why. The command structure is the same as I have seen in the tutorial. Sometimes I have to do it through the interface, and sometimes it doesn't work either. It is always this error:
EEG = pop_tesa_interpdata( EEG, 'cubic', [5,5] );
Index in position 2 is invalid. Array indices must be positive integers or logical values.
Error in tesa_interpdata (line 232)
X = x(:,TP1:TP2);
Error in pop_tesa_interpdata (line 97)
EEG = tesa_interpdata( EEG, interpolation, interpWin );
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%Step 19: Interpolate missing data around TMS pulse
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EEG = pop_tesa_removedata( EEG, cut);% 0 value, needs interpolation
tesa_plot(EEG, 'xlim', [-800,500], 'ylim', [-40,40], 'elec', 'O2', 'CI', 'on');
EEG = pop_tesa_interpdata( EEG, 'cubic', [5,5] );
Please, help.
Thanks in advance,
Best regards,
Esteban