ET_PDToolkit/PDToolkit/@PDExperiment/update_aggregates.m

25 lines
785 B
Matlab

function[e] = update_aggregates(e);
fig = gcf;
plotwindow_id = num2str(fig);
table = findobj('Tag','aggragate_table');
agg_strings = {};
for i = 1:length(e.aggregates)
agg_strings{i,1} = 1;
color_str = ['#' sprintf('%02s', dec2hex(e.aggregates(i).color(1)*255)) ...
sprintf('%02s', dec2hex(e.aggregates(i).color(2)*255)) ...
sprintf('%02s', dec2hex(e.aggregates(i).color(3)*255))]
agg_strings{i,2} = ['<html><li color=' color_str '><font color=#000000>'...
e.aggregates(i).name{1} ...
'</font></li></html>'];
agg_strings{i,3} = e.aggregates(i).error.name;
end
set(table, 'Data', agg_strings);
e = e.calculate_aggregates;
e = e.plot_aggregates(table, []);