Matrix function: Illegal or reserved name error

For questions regarding programming in the EViews programming language.

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

Omar
Posts: 4
Joined: Sat May 11, 2013 4:08 am

Matrix function: Illegal or reserved name error

Postby Omar » Sat May 11, 2013 4:18 am

Hi,

I'm using Eviews 7 and while trying to calculate the element-wise product of two pre-defined matrices, I get an illegal or reserved name error. I used the following function:

matrix(10,10) a
matrix(10,10) b
matrix x = @eprod(a, b)

When I execute this function, I get "@EPROD is an illegal or reserved name". Am I missing something here? Can anyone help? I also tried determining the size of the matrix x for (10,10) but still the same error.

Many thanks.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Matrix function: Illegal or reserved name error

Postby startz » Sat May 11, 2013 6:43 am

Perhaps you want

Code: Select all

@emult
?

Omar
Posts: 4
Joined: Sat May 11, 2013 4:08 am

Re: Matrix function: Illegal or reserved name error

Postby Omar » Sat May 11, 2013 10:51 am

Thanks a lot! It works now! :)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests