ET_PDToolkit/PDToolkit/@PDSession/plotTrialBasedonPattern.m

15 lines
341 B
Mathematica
Raw Normal View History

2018-06-12 14:49:55 +02:00
function[session] = plotTrialBasedonPattern(varargin)
jListBox = varargin{1};
jEventData = varargin{2};
hListbox = varargin{3};
jCBModel = get(jEventData, 'CheckModel');
numChecks = jCBModel.getCheckedCount;
activeIndex = get(hListbox, 'SelectedIndex');
if (numChecks > 2)
jCBModel.uncheckAll;
jcBModel.checkIndex(activeIndex);
end