Hello!
I would like to know how can I use a generated variable name to be used as a handle for the SET function. I have the current code:
for j=1:25 var=num2str(j, '%02i') variable=['panel31.txt1' var] if timematrix(menu.pm28, j)==1 set(variable, 'Color', 'g'); else set(variable, 'Color', 'r'); end end
However, I am getting the following error:
Error using setValue must be a handle
How can I do this?
Best Answer