tags:

views:

24

answers:

1

how can i view the last 10 rows of a matrix note that the matrix size is changing : rows= 50, 100 150...)

+4  A: 

You can use the end operator to see the last ten rows, like such:

array(end-9:end,:)

This shows rows from 'last one'-9 (e.g. from 41 if there's 50 rows) till the last row (e.g. 50), and all columns.

Jonas

related questions