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

3 visualizaciones (últimos 30 días)
John
John el 25 de Sept. de 2020
Comentada: John el 29 de Sept. de 2020
I cannot figure out the way to get/access the data/values from a mlreportgen.dom.Table.
Thank you for your help!

Respuesta aceptada

Sunil Patidar
Sunil Patidar el 28 de Sept. de 2020
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 comentarios
Sunil Patidar
Sunil Patidar el 29 de Sept. de 2020
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 el 29 de Sept. de 2020
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by