Post
by Mike-L » 12 Oct 2014 12:12
Thanks Softcore,
No I have a set of vectors:
vector 1:0,0,0,0,0,0,0
vector2:0,0,0,0,0,0,0
vector3:0,0,0,0,0,0,0
vector4:0,0,0,0,0,0,0
etc ...
I would like to be able to change the nth element of all chosen vectors, in a repetitve way. In other words a script that will refer to Vector 'X' [n] and then I can repeat through the script changing the X value to address the different vectors. So if X starts as 1, increasese in increments by 1 and position [2] is assigned a value of 4 the final product would be:
vector 1:0,0,4,0,0,0,0
vector2:0,0,4,0,0,0,0
vector3:0,0,4,0,0,0,0
vector4:0,0,4,0,0,0,0
I know that I can use loops to repeat through an array changing values, but I don't know how or if you can loop through different expressions/vectors.