load('matrixoutputT7')    % load the matrix outputdatamatrixT7
%%% using code_table7.m  but this is 'table 6 in paper'


%%VertLabel={'Esc16a','Esc16b','Esc16c','Esc16d','Esc16e','Esc16g',...
%%    'Esc16h','Esc16i','Esc16j','Had12 ','Had14 ','Had16 ','Had18 ',...
%%    'Had20 ','Kra30a','Kra30b','Kra32 ','Nug12 ','Nug14 ','Nug15 ',...
%%    'Nug16a','Nug16b','Nug17 ','Nug18 ','Nug20 ','Nug21 ','Nug22 ',...
%%    'Nug24 ','Nug25 ','Nug27 ','Nug28 ','Nug30 ','Rou12 ','Rou15 ',...
%%    'Rou20 ','Scr12','Scr15 ','Scr20 ','Tai12a','Tai15a','Tai17a',...
%%    'Tai20a','Tai25a','Tai30a','Tho30 '};
VertLabel= strread(num2str(ns),'%s');  %change the dimension to cell string

HorizLabel={
'Opt. Cond.','Opt. Cond.','CPUsec ','CPUsec','\# LNGM'
'KKT1 eTRS','KKT2 C.S.','Algor Time ','Str. dual. Time','Main Algor.'
	             };
   

Results=[outputdatamatrixT7(:,[3 4 1 2 5])];
%aformat=['%6.4e  &  %6.4e  &  %8.5f  &  %8.5f & %i'];
aformat=['%6.4e  &  %6.4e  &  %8.3f  &  %8.3f & %i'];
%aformat=['%d  &  %d  &  %d  &  %i &  %d  &  %s:%s:%s &  %5.2f  &  %i  &  %i'];

latextable(Results,'Horiz',HorizLabel,'Vert',VertLabel,'Vline',[0,1,2,3,4,5,NaN],'Hline',[0,1,2,2,NaN,NaN],'format',aformat,'name','TableTempT7.tex');
