function r = rows(x) % ROWS The number of rows. % ROWS is a more readable alternative to size(x,1). r = size(x,1);