ET_PDToolkit/PDToolkit/@PDExperiment/select_aggregate.m

27 lines
489 B
Matlab

function[e] = select_aggregate(varargin)
e = varargin{1};
table = varargin{2};
event = varargin{3};
data = get(table, 'Data');
if length(event.Indices) > 1
if (event.Indices(2) == 1)
%% checkbutton is clicked
if isempty(data{event.Indices(1),1})
data{event.Indices(1),1} = 0;
end
data{event.Indices(1),1} = logical(~data{event.Indices(1),1});
end
set(table, 'Data',data);
end
e.plot_aggregates(table, event);