Consider I have a variable 'target' {2000x8 double} which changes its value every iteration {max ten iterations}. I want to save this variable 'target' at end of every iteration. However, I want to save it as a variable with a different name for ease of access. So consider for iteration 1, it should be saved as missData_1, for iteration 5, it should be saved as missData_5 and similarly till 10.
It is easy to generate strings missData_#, but I am not able to assign the 'target' variable to the dynamic string value.
I think the issue is that missData_# is the value of string variable 'string2add'.
So how can I access the value of 'string2add' and create a variable using that name and assign 'target' to that variable??
Please help with the issue. Thank you in advance :D
It is easy to generate strings missData_#, but I am not able to assign the 'target' variable to the dynamic string value.
I think the issue is that missData_# is the value of string variable 'string2add'.
So how can I access the value of 'string2add' and create a variable using that name and assign 'target' to that variable??
Please help with the issue. Thank you in advance :D