Dim ki As Long, kj As Long
Dim max As Double
max = 0
For ki = 0 To (n - 1)
For kj = 0 To (m - 1)
If Abs(x(ki, kj)) > max Then max = Abs(x(ki, kj))
j=a
y=b
End If
Next b
Next a
Print max "行为";j,"列为";y
循环比较,貌似没有更好的办法。。
Dim i As Long, j As Long, arr As Double
Dim max As Double
max = 0
For i = 0 To (n - 1)
For j = 0 To (m - 1)
If Abs(a(i, j)) > max Then
max = Abs(a(i, j))
End If
Next
Next
Print max