If I have three variables called
var1 var2 and var3 in MATLAB ( I do not want to create them I have them )
I need to call for each of them and set them equal to 1.
I could write
var1 = 1;
var2 = 1;
var3 = 1;
But can I use a for loop?
For example (which doesn't run)
for i=1:3
var&i=1
end