Read matrix from excel-file

For questions regarding programming in the EViews programming language.

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

sakerstallda
Posts: 7
Joined: Thu Aug 27, 2015 5:17 am

Read matrix from excel-file

Postby sakerstallda » Thu Aug 27, 2015 5:30 am

I am trying to use the command read to import a matrix from excel into eviews. The name of the matrix is mat1, the data starts in the cell d3 and is situated in the sheet Yield. Why am I not able to use the command below? Do I have to define the matrix mat1 Before using the command read?

mat1.read (d3, s=Yield) "G:\EkAn\_Gemensam\Rapporter\Bankernas räntor och utlåning\Finansieringskostnad\Modell\Interpolering säkerställda\Räntor säkerställda storbankerna 2015-07-09.xls"

Regards

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

Re: Read matrix from excel-file

Postby EViews Gareth » Thu Aug 27, 2015 6:16 am

Yes, mat1 must exist first

sakerstallda
Posts: 7
Joined: Thu Aug 27, 2015 5:17 am

Re: Read matrix from excel-file

Postby sakerstallda » Thu Aug 27, 2015 6:27 am

I have also tried as below. But I still don't get it to work. What do I miss? Some syntax error?

matrix (4000, 4000) mat1

mat1.read (d3, s=Yield) "G:\EkAn\_Gemensam\Rapporter\Bankernas räntor och utlåning\Finansieringskostnad\Modell\Interpolering säkerställda\Räntor säkerställda storbankerna 2015-07-09.xls"

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

Re: Read matrix from excel-file

Postby EViews Gareth » Thu Aug 27, 2015 7:38 am

You have a space between read and its options.

sakerstallda
Posts: 7
Joined: Thu Aug 27, 2015 5:17 am

Re: Read matrix from excel-file

Postby sakerstallda » Thu Sep 03, 2015 11:12 pm

Thanks a lot :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests