How to access the data/values from mlreportgen.dom.Table?

I cannot figure out the way to get/access the data/values from a mlreportgen.dom.Table.
Thank you for your help!

 採用された回答

Sunil Patidar
Sunil Patidar 2020 年 9 月 28 日

1 投票

In order to access the data from a table, use the entry function.
>> tableEntryOut = entry(tableObj,row,column)
It returns the table entry for the specified column of the specified row.

3 件のコメント

John
John 2020 年 9 月 28 日
This doesn't output the data in the table entry. It outputs a table property cell instead.
>> tableEntryOut = entry(thetable,1,1)
tableEntryOut =
TableEntry with properties:
RowSpan: []
ColSpan: []
VAlign: []
Border: []
BorderColor: []
BorderWidth: []
InnerMargin: []
Hyphenation: []
StyleName: []
Style: {[1×1 mlreportgen.dom.Width]}
CustomAttributes: []
Parent: [1×1 mlreportgen.dom.TableRow]
Children: [1×1 mlreportgen.dom.Text]
Tag: 'dom.TableEntry:37473'
Id: '37473'
Sunil Patidar
Sunil Patidar 2020 年 9 月 29 日
Hey, I've mistankely missed in my previous reply that a Table Entry function only returns a mlreportgen.dom.TableEntry Object. To retreive the element from this object, use:
>> val = tableEntryOut.Children.Content
John
John 2020 年 9 月 29 日
Thank you, Sunil !
Can you also help on keeping the table in the same page (basically avoid a page break in the middle of the table)? This is an important topic for our report project.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Programmatically についてさらに検索

製品

質問済み:

2020 年 9 月 25 日

コメント済み:

2020 年 9 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by