# HG changeset patch # User Christopher Hummersone # Date 1490860850 -3600 # Node ID 44863636466cc2ff56cf5229737ab1caac8cb0b4 # Parent a02a9561febfd30e1e190d6083b226207dc7099b Remove aggregated column. diff -r a02a9561febf -r 44863636466c MASSEFresults.m --- a/MASSEFresults.m Wed Mar 29 22:24:20 2017 +0100 +++ b/MASSEFresults.m Thu Mar 30 09:00:50 2017 +0100 @@ -181,6 +181,9 @@ % - 'value' - Filters the data according to the value. The % parameter should be a function handle that takes the % value as its input, and returns a logical value. + % + % If using the 'mean' or 'max' option, the respective variable is + % removed from the output. assert(mod(length(varargin),2)==0,'MASSEFresults:filter:invalidArgs','input must contain parameter/value pairs') data = obj.data; @@ -372,6 +375,7 @@ [~, ia, ib] = intersect(filteredTable(:,keys), dataTable(:,keys)); dataTable.value(ib) = filteredTable.value(ia); dataTable = dataTable(ib, :); + dataTable(:, col) = []; else % normal filter function dataTable = obj.filterRows(dataTable,filterval,col);