I have a very basic question. I want to write a loop in MATLAB which creates 4 separate variables with "a" number "in the name" and put 22 in each of them. Something like this:
for a=1:4 star'{a}'=22end
But this does not seem to identify "a" separately and not as a part of the variable name. How should I use syntax to do that?
Best Answer