Subscript a table error while indexing

Hello, anyone help me please..
>> table(TestY{idx},label{idx},Posterior{idx,:},'VariableNames',['TrueLabel','PredLabel','Posterior'])
Subscripting into a table using one subscript (as in t(i)) or three or more subscripts (as in t(i,j,k)) is not supported.
Always specify a row subscript and a variable subscript, as in t(rows,vars).

1 件のコメント

Siddharth Bhutiya
Siddharth Bhutiya 2021 年 1 月 29 日
Looks like TestY or label might be a table and as the error mentions, you need 2 indices to subscript into a table. Something like the following
t{:,idx}

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

タグ

質問済み:

2021 年 1 月 27 日

コメント済み:

2021 年 1 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by