Hello everybody! Im a new to this site. I wonder how can I get the row dimension of a matrix. For example i have a matrix double[n,m] and i want to get n provided m is unknown. So what property of method should i use???
Thank you
Hello everybody! Im a new to this site. I wonder how can I get the row dimension of a matrix. For example i have a matrix double[n,m] and i want to get n provided m is unknown. So what property of method should i use???
Thank you
Hi ninikobb, welcome here!
Use the GetUpperBound method. Read this:http://msdn.microsoft.com/en-us/library/system.array.getupperbound.aspx
What's in a name?
But it seems to me that bounds has more of a matrix thing than length.
Anyways glad to know this method exists :)
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.