<div dir="ltr"><pre class="" id="comment_text_0" style="white-space:pre-wrap;width:50em;color:rgb(0,0,0)">Hi FTs,
Recently I updated to Fieldtrip version 20150115 (was using 2014 Septemper version earlier) which resulted in a GUI error in the Matlab command <a id="FALINK_1_0_0" class="" href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=2819#" style="color:rgb(28,125,255)!important;border-width:0px 0px 1px!important;border-bottom-color:rgb(28,125,255)!important;border-bottom-style:solid!important;padding-bottom:1px!important;display:inline!important;background-color:transparent!important">window</a> when any buttons in the interactive window were clicked. The GUI which I activated was cfg.artfctdefvalue.zvalue.interactive = 'yes';
I believe this error arises only on the Matlab2014b version since the error was not reproduced in Matlab2014a version. Given below is the error that was displayed:
MATLAB COMMAND WINDOW
showing trial 1, channel Cz
No appropriate method, property, or field Key for class
matlab.ui.eventdata.ActionData.
Error in ft_artifact_zvalue>parseKeyboardEvent (line 1079)
key = eventdata.Key;
Error in ft_artifact_zvalue>keyboard_cb (line 680)
key = parseKeyboardEvent(eventdata);
Error using waitfor
Error while evaluating UIControl Callback
SAMPLE OF THE CODE:
cfg=[];
cfg.continuous = 'yes';
cfg.trl = trl_2;
cfg.artfctdef.zvalue.channel = data.label{jj};
cfg.artfctdef.zvalue.cutoff = 8;
cfg.artfctdef.zvalue.trlpadding = 0;
cfg.artfctdef.zvalue.artpadding = 0.05;
cfg.artfctdef.zvalue.fltpadding = 0;
cfg.artfctdef.zvalue.cumulative = 'yes';
cfg.artfctdef.zvalue.medianfilter = 'yes';
cfg.artfctdef.zvalue.medianfiltord = 9;
cfg.artfctdef.zvalue.absdiff = 'yes';
cfg.artfctdef.zvalue.interactive = 'yes';
%%%%%%
P.S. - I was aware of <a class="" title="REOPENED - 2014b, Handle Graphics 2 and FieldTrip" href="http://bugzilla.fcdonders.nl/show_bug.cgi?id=2461" style="color:rgb(102,51,102)">Bug2461</a> and that is why I upgraded to the latest FT version since a post dated this month states that FT had partially resolved the issues from Handle graphics 2.</pre></div>