load('matrixoutputT2')    % load the matrix outputdatamatrixT2


%%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={
'Accuracy','Accuracy','CPUsec ','CPUsec','CPUsec','\# LNGM'
'Main Algor.','SOCP/SDP','Main Algor','Str. Dual.','SOCP/SDP','Main Algor.'
	             };
   

Results=[outputdatamatrixT2(:,[5 6 1 2 7 8 ])];
%aformat=['%6.4e  &  %6.4e  &  %8.5f  &  %8.5f'];
aformat=['%3.1f  &  %6.4e  &  %8.3f  &  %8.3f  & %6.3e  &  %d '];
%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,6,NaN],'Hline',[0,1,2,2,NaN,NaN],'format',aformat,'name','TableTempT2.tex');
