Let's say that I have an array of variables v[i]:
v={vVar[1],vVar[2],vVar[3]}
I would like to set the variables to have some values.
I have multiple ways of setting their value for the first time. For example:
values={0,1,2};
Evaluate[v]=values;
None of the procedures I have found can do this repeatedly. If I try to do the following, it will complain that "Cannot assign to raw object".
values1={0,1,2};
Evaluate[v]=values1;
values1={3,4,5};
Evaluate[v]=values2;
And the variables will have the values from list values1.
There is obviously a possibility of defining every vVar[i] though a loop but I'm wondering if there is a more sophisticated method of doing this.
Edit: changing the variable names