Dot Product (.*)

For questions regarding programming in the EViews programming language.

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

pdwhoward
Posts: 11
Joined: Tue Oct 23, 2012 2:44 pm

Dot Product (.*)

Postby pdwhoward » Tue Oct 23, 2012 2:47 pm

How do I multiply two matrices pairwise? I cannot figure this out. In MATLAB, I could for example do: C=A.*B, where C(i,j) will equal A(i,j)*B(i,j). Thank you for the help.

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

Re: Dot Product (.*)

Postby EViews Gareth » Tue Oct 23, 2012 3:25 pm

Code: Select all

Matrix CC = @emult(a,b)
Follow us on Twitter @IHSEViews

pdwhoward
Posts: 11
Joined: Tue Oct 23, 2012 2:44 pm

Re: Dot Product (.*)

Postby pdwhoward » Wed Oct 24, 2012 8:02 am

Thank you. Is emult() a new command in Eviews 6 or 7? I have Eviews 5 and this does not work.

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

Re: Dot Product (.*)

Postby EViews Gareth » Wed Oct 24, 2012 9:14 am

It does not exist in EViews 5.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: Bob and 20 guests