Hi
I wanna make a vector with variable names and then assign values to the from a for loop.
Estimates = [1 2 3 4 5 6 7];variables = (a b c d e f g};for i = 1:length(variables) variables(i) = Estimates(1);end
So that
a = 1 b = 2 etc
and so on. Is this possible?
And also is i possible to make it so that you create variables named in incremental way? I.e
b = [2 5 45];for i = 1:length(b)'a'+int2str(i) = b(i);end
that is
a1 = 2 a2 = 5 and a3 = 45
Kind Regards
Best Answer