clear all;
close all;
clc;

%% plot sum of WCE usin Nsim = [1,4,8,12,16,20] with different colors
% % change color
% k = 0;
% Nsimmax = 20;
% G = cell(5,1);
% G{1,1} = 'b';
% G{2,1} = 'g';
% G{3,1} = 'r';
% G{4,1} = 'c';
% G{5,1} = 'k';
% G{6,1} = 'y';
% 
% for Nplot = [1,4,8,12,16,20]
% k = k + 1;
% load(['Nsim' num2str(Nplot) '.mat'])
% [objvalsum] = sum_WCE(d0); 
% 
% plot(nred,objvalsum, G{k,1})               %using nonscaling obj. fun
% 
% hold on
% end
% 
% % plotting (labels, title, legend..)
% 
% xlabel('states in reduced-order controller')
% ylabel('sum of worst case error (outputs)')
% title('Nsim = [1,4,8,12,16,20]');
% XLIM([1 16]);
% legend('Nsim = 1','Nsim = 4', 'Nsim = 8', 'Nsim = 12', 'Nsim = 16', 'Nsim = 20')


