I couldn't figure out the best way to ask this question so apology for the confusing title. Let's say I had multiple variables with different name called var1,var2,var3… with values in each.
Is there a way to access each of the variable in such a way like
for k = 1:10 variable(k) = (variable%d,k)
end
So that I can access the variables with different names where %d can take on given integer similar to C language? Another way might be if there was a variable called GreenEggs&Ham and I want to access it like
A = 'GreenEggs'B = 'Ham'BreakFast = (%s&%s,A,B);
Best Answer