Error with 1 row table with FormalTable Report Generator

1 回表示 (過去 30 日間)
C. K.
C. K. 2023 年 3 月 21 日
回答済み: C. K. 2023 年 3 月 21 日
I want to add a 1 row table with text content elements to my report (1 header row and 1 data row), but when I use
mlreportgen.dom.FormalTable(T)
I always get the following error:
Error using mlreportgen.dom.FormalTable
Content type of column 1 is not supported by MATLABTable.
This is the table at the beginning:
v_3 v_5
____ ____
Iv/Ia [%] 1.53 3.82
To get rid of the trailing zeros, I convert the table content to text elements, where I used sprintf.
v_3 v_5
__________________________ __________________________
Iv/Ia [%] [1×1 mlreportgen.dom.Text] [1×1 mlreportgen.dom.Text]
If I add a 2nd dummy row, the error goes away, but that's not the solution I want.
Could you please help me?

採用された回答

C. K.
C. K. 2023 年 3 月 21 日
I found the solution. The content elements have to be cells with the Report Generator Text in it.
v_3 v_5
Iv/Ia [%] {1×1 mlreportgen.dom.Text} {1×1 mlreportgen.dom.Text}

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Report Generator についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by