Page 1 of 1

Extracting matrix element

Posted: Thu Jun 23, 2011 8:20 am
by nectar
Can I extract elements of a matrix separately?

Thanks,

Re: Extracting matrix element

Posted: Thu Jun 23, 2011 9:04 am
by EViews Gareth

Code: Select all

scalar myval = mymatrix(1,1)
extracts the 1,1 element.

Re: Extracting matrix element

Posted: Thu Jun 23, 2011 9:11 am
by nectar
Thanks a bunch. I knew it had to be an scalar, just didn't find right example in the manual.