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

조회 수: 1 (최근 30일)
John
John 2020년 9월 25일
댓글: John 2020년 9월 29일
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일
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
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개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by