In MATLAB, indexing a table using three or more subscripts is not supported. That means you cannot use the syntax t(i,j,k) to select specific elements from a table t. Instead, you should always specify a row subscript and a variable subscript (also known as a column subscript), using the syntax t(rows,vars). This means you can select one or more rows from the table and one or more variables from those rows. Here is an example:
main.m265 chars14 lines
In the example above, we create a table t with three variables (A, B, and C) and three rows. We then select rows 2 and 3 and variables B and C using the t(2:3,{'B','C'}) syntax. The resulting subset of the table contains the selected rows and variables.
gistlibby LogSnag