[FieldTrip] error in ft_artifact_zvalue

Eelke Spaak eelke.spaak at donders.ru.nl
Thu Jun 11 13:03:08 CEST 2015


Hi Mats,

Could you let me know what Matlab version you are using? And if the
error also occurs if you use an older version (e.g. 2012a or so
(simply use 'matlab2012a' at a DCCN mentat prompt))?

Cheers,
Eelke

On 11 June 2015 at 11:55, Es, M.W.J. van (Mats) <M.vanEs at donders.ru.nl> wrote:
> Hi, I just wanted to start processing my MEG data, but when I want to remove
> the artifacts using ft_artifact_zvalue I get an error.
> This is my code:
> % data is preprocessed already
> %% Find jump artifacts
> cfg = [];
>
> % channel selection, cutoff and padding
> cfg.artfctdef.zvalue.channel    = 'MEG';
> cfg.artfctdef.zvalue.cutoff     = 20; % artifact threshold
> cfg.artfctdef.zvalue.trlpadding = 0;
> cfg.artfctdef.zvalue.artpadding = 0;
> cfg.artfctdef.zvalue.fltpadding = 0;
>
> % algorithmic parameters
> cfg.artfctdef.zvalue.cumulative    = 'yes';
> cfg.artfctdef.zvalue.medianfilter  = 'yes';
> cfg.artfctdef.zvalue.medianfiltord = 9;
> cfg.artfctdef.zvalue.absdiff       = 'yes';
>
> % make the process interactive
> cfg.artfctdef.zvalue.interactive = 'yes';
>
> [~, artifact_jump] = ft_artifact_zvalue(cfg, data);
>
> I do get the interactive figure where I can scroll through the trials and I
> can adjust the threshold, but when I use my mouse (e.g. to click on
> 'threshold'), I get the following error:
>
> Attempt to reference field of non-structure array.
>
> Error in ft_artifact_zvalue>keyboard_cb (line 701)
>     curKey=eventdata.Key;
>
> Error using waitfor
> Error while evaluating uicontrol Callback
>
> It seems like my mouse isn't recognized (tried different USB ports). Can you
> help me? (PS: scrolling through trials with the keyboard is working).
>
> Best,
> Mats



More information about the fieldtrip mailing list