How to make different NumberFormat in two columns (using Matlab Report Generator)
Hello! I need to make a table in which one column has NumberFormat("%1.8f") and other has NumberFormat("%1.1f"). I can’t figure it out. I tried to make 2 tables with different styles and then combine them, but it makes separate tables in word document (look at the photo). Here’s the code:
tableStyles1 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.8f")};
tableStyles2 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.1f")};
Stat_table1 = FormalTable(Tide_const(:,1));
Stat_table2 = FormalTable(Tide_const(:,2));
Stat_table1.Style = [Stat_table1.Style, tableStyles1];
Stat_table2.Style = [Stat_table2.Style, tableStyles2];
Table_gen = FormalTable([Stat_table1 Stat_table2]);
append(sec1,Table_gen);Hello! I need to make a table in which one column has NumberFormat("%1.8f") and other has NumberFormat("%1.1f"). I can’t figure it out. I tried to make 2 tables with different styles and then combine them, but it makes separate tables in word document (look at the photo). Here’s the code:
tableStyles1 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.8f")};
tableStyles2 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.1f")};
Stat_table1 = FormalTable(Tide_const(:,1));
Stat_table2 = FormalTable(Tide_const(:,2));
Stat_table1.Style = [Stat_table1.Style, tableStyles1];
Stat_table2.Style = [Stat_table2.Style, tableStyles2];
Table_gen = FormalTable([Stat_table1 Stat_table2]);
append(sec1,Table_gen); Hello! I need to make a table in which one column has NumberFormat("%1.8f") and other has NumberFormat("%1.1f"). I can’t figure it out. I tried to make 2 tables with different styles and then combine them, but it makes separate tables in word document (look at the photo). Here’s the code:
tableStyles1 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.8f")};
tableStyles2 = { ColSep("solid"), …
RowSep("solid"), …
Border("solid"), …
NumberFormat("%1.1f")};
Stat_table1 = FormalTable(Tide_const(:,1));
Stat_table2 = FormalTable(Tide_const(:,2));
Stat_table1.Style = [Stat_table1.Style, tableStyles1];
Stat_table2.Style = [Stat_table2.Style, tableStyles2];
Table_gen = FormalTable([Stat_table1 Stat_table2]);
append(sec1,Table_gen); report generator, table format MATLAB Answers — New Questions