Re: Number of Rows/Columns of a Matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg37652] Re: Number of Rows/Columns of a Matrix
- From: Bill Rowe <listuser at earthlink.net>
- Date: Thu, 7 Nov 2002 06:42:55 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 11/6/02 at 6:54 AM, mukasa at jeol.com (Sseziwa Mukasa) wrote: > >On Tuesday, November 5, 2002, at 05:01 AM, Matthias.Bode at oppenheim.de >wrote: >>I fail to locate the commands "Rows[mat]", "Columns[mat]" which give >>the number of rows and columns of a matrix; I believe they exist - >>and I do know Dimensions[]. >As far as I can tell there are no such prebuild commands in v4.2. It >would be trivial to define them however. While there are any prebuilt commands called Rows and Columns there is also no real need to define them either. The number of rows in a matrix, mat is given by Length[mat] and the number of columns is given by Length[First[mat]]