Subscript a table error while indexing

4 views (last 30 days)
Izmi Maulani
Izmi Maulani on 27 Jan 2021
Answered: Steven Lord on 27 Jan 2021
Hello, please anyone help me?
>> 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).

Answers (1)

Steven Lord
Steven Lord on 27 Jan 2021
Did you define a variable named table? If so you will be unable to call the table function to create more table arrays while that variable exists. Rename the variable.

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!