multiple matrix copy data
Posted: Mon Aug 22, 2016 2:17 pm
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?
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?