count rows of a matrix



Le 31/05/2010 22:46, Friedrich Hattendorf a ?crit :
> I  want to transform geometric objects.
> Therefore I am searching a funtion to count the number of
> rows of a given matrix
>    
a matrix is a list of rows, each row being a list of elements, hence
length(M)
gives the number of rows, and
length(M[1])
the number of columns (or length(transpose(M)), probably not very efficient)

Eric