how to know the location of the minimum of a matrix?
Posted: Thu Apr 19, 2012 1:40 am
I can gain the minimum of a matrix via @min, and I want to know the location of this minimum in the matrix?
Thanks!
Thanks!
EViews User Forum
https://forums.eviews.com/
Code: Select all
scalar iid = @imin(@vec(mat01))-1
scalar cid = @floor(iid/@rows(mat01))+1
scalar rid = @mod(iid, @rows(mat01))+1