RE : Number of column in a matrix



Thanks Viktor.

This work directly in Maxima or in batch file but not in translated code.

The translated code is :

(MFUNCTION-CALL $LENGTH (MAREF $MAT 1))


> De : Viktor T. Toth [mailto:vttoth@vttoth.com] 

> Try length(a[1]).

> The difference is that row(a,1) returns a matrix (of one row), while a[1]
> returns a list.


> Viktor
 

>> Hello,

>> How to know the number of column in a matrix.

>> If A is the matrix and if I do :

>> LENGTH(ROW(A,1));

>> This return alway 1.

>> Thanks for your help.

_______________________________________________
Maxima mailing list
Maxima@www.math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima