|
|
|
Click here to copy the following block |
Function TransposeMatrix(arr() As Double) As Double() Dim startRow As Long, startCol As Long Dim endRow As Long, endCol As Long Dim r As Long, c As Long Dim tmp As Double startRow = LBound(arr) endRow = UBound(arr) startCol = LBound(arr, 2) endCol = UBound(arr, 2) ReDim res(startCol To endCol, startRow To endRow) As Double For r = startRow To endRow For c = startCol To endCol res(c, r) = arr(r, c) Next Next TransposeMatrix = res
End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|