To index the first 7 rows of a table in MATLAB, you can use the following code:
main.m154 chars6 lines
The code above creates an example table T with 10 rows and 3 variables. To index the first 7 rows of T, we use T(1:7,:) which returns a new table consisting of the first 7 rows and all variables.
gistlibby LogSnag