Resizing a matrix during execution of a program

For questions regarding programming in the EViews programming language.

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

DBel2012
Posts: 69
Joined: Sun Sep 30, 2012 5:37 am

Resizing a matrix during execution of a program

Postby DBel2012 » Thu Nov 07, 2013 10:10 am

Hi,

I'm using Eviews 7.

At the start of a program, MatA is a matrix of 48 lines and 4 columns MatA(48,4).

I would like MatA to become a 48x8 matrix at some point during the execution of a program.

Can I do that ? If so, could you please indicate me what is (are) the command (s) that will allow me to resize MatA?

Thanks!

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

Re: Resizing a matrix during execution of a program

Postby EViews Gareth » Thu Nov 07, 2013 10:17 am

Just redeclare it:

Code: Select all

matrix(48,8) MatA

DBel2012
Posts: 69
Joined: Sun Sep 30, 2012 5:37 am

Re: Resizing a matrix during execution of a program

Postby DBel2012 » Thu Nov 07, 2013 10:30 am

Great!

many thanks Gareth again for your help!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests