Hi,
I have 6 matrices in my workfile with names (a1, a2, ..., a5, and b).
Matrices a1-a5 contain data, b is empty
Let's assume:
svector x= @wsplit("a1 a2 a3 a4 a5")
I would like to create a loop on x so I can copy some elements of matrices a1-a5 (but referencing x, not a1-a5 directly) into b
Somethin along the lines:
for "all x elements"
"matrix in x"(1,2) = matrix_b(1,3)
next
and I'm looping all elements of x
How to do it?
multiple matrix copy data
Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13315
- Joined: Tue Sep 16, 2008 5:38 pm
Re: multiple matrix copy data
Look up string for loops and replacement variables.
http://www.eviews.com/help/helpintro.ht ... ml%23ww830
http://www.eviews.com/help/helpintro.ht ... %23ww41251
http://www.eviews.com/help/helpintro.ht ... ml%23ww830
http://www.eviews.com/help/helpintro.ht ... %23ww41251
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 7 guests