Page 1 of 1

Extract a scalar from a matrix

Posted: Wed Oct 23, 2013 9:13 am
by RDS
I would like to extract a scalar from a matrix M(100,100)
The number I am interested in is located in row 22 and column 18.

What is the right command to get a scalar from the matrix M?

Re: Extract a scalar from a matrix

Posted: Wed Oct 23, 2013 9:22 am
by RDS
scalar r_22_18 = @subextract(M,22,18,22,18)

Re: Extract a scalar from a matrix

Posted: Wed Oct 23, 2013 9:25 am
by EViews Gareth

Code: Select all

scalar r_22_18 = M(22,18)