Matrix size (a simple question)

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

jgorigoitia
Posts: 4
Joined: Wed Feb 15, 2012 5:45 pm

Matrix size (a simple question)

Postby jgorigoitia » Thu May 09, 2013 8:34 pm

Hi all,
could someone tell me how I get matrix size? I have a matrix and i need the size or length as a variable ( !x = length(matrix1) ) for a "for 1 to !x ...next" sentence

Thanks in advance.

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

Re: Matrix size (a simple question)

Postby EViews Gareth » Thu May 09, 2013 8:38 pm

@columns(matrix1)*@rows(matrix1)

?

jgorigoitia
Posts: 4
Joined: Wed Feb 15, 2012 5:45 pm

Re: Matrix size (a simple question)

Postby jgorigoitia » Fri May 10, 2013 8:05 am

Muchas gracias.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests