Extract a scalar from a matrix

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

RDS
Posts: 85
Joined: Thu Feb 17, 2011 9:50 am

Extract a scalar from a matrix

Postby RDS » Wed Oct 23, 2013 9:13 am

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?

RDS
Posts: 85
Joined: Thu Feb 17, 2011 9:50 am

Re: Extract a scalar from a matrix

Postby RDS » Wed Oct 23, 2013 9:22 am

scalar r_22_18 = @subextract(M,22,18,22,18)

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 12314
Joined: Tue Sep 16, 2008 5:38 pm

Re: Extract a scalar from a matrix

Postby EViews Gareth » Wed Oct 23, 2013 9:25 am

Code: Select all

scalar r_22_18 = M(22,18)
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 5 guests