[FieldTrip] error in ft_artifact_zvalue
Wanja Mößing
wanjamoessing at gmx.de
Thu Jun 11 13:14:41 CEST 2015
Hi Mats,
I recently submitted a bugfix to that function because the keyboard was not working. Now both should be working. Unfortunately, I could only test that on matlab 2015a. So it might be that it's not working on older versions. You could try a ft version from a week ago or so without the bugfix (and hence only mouse functionality). Could you let us know which version of matlab you're using?
Best,
-Wanja
----- Ursprüngliche Nachricht -----
Von: "Eelke Spaak" <eelke.spaak at donders.ru.nl>
Gesendet: 11.06.2015 13:04
An: "FieldTrip discussion list" <fieldtrip at science.ru.nl>
Betreff: Re: [FieldTrip] error in ft_artifact_zvalue
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
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20150611/5284e318/attachment-0002.html>
More information about the fieldtrip
mailing list