Changes in font, font size and fontweight (bold) within a tabe

23 ビュー (過去 30 日間)
Milosha Britto Nordbø
Milosha Britto Nordbø 2020 年 5 月 16 日
回答済み: Devineni Aslesha 2020 年 5 月 19 日
Hi,
Is it possible to change the font to 'Times New Roman' and also the fontsize to 14 of a table.
I would like to highlight the last row of the table to bold.
Is it possible??
This is my table:
This is my output:

回答 (1 件)

Devineni Aslesha
Devineni Aslesha 2020 年 5 月 19 日
Hi,
Please find the below code to change the font, font size and font weight of a table.
import mlreportgen.dom.*;
myReport = Document('myDoc','html');
t = Table([LastName num2cell(Age)]);
t.TableEntriesStyle = {FontFamily('Times New Roman'), FontSize('14')};
t.entry(5,1).Children(1).Bold = 1;
t.entry(5,2).Children(1).Bold = 1;
append(myReport,t);
close(myReport);
rptview(myReport.OutputPath);
For more information, refer the following link

カテゴリ

Help Center および File ExchangeTables についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by