I want to plot many graphs in a loop. But every plot should get a description like h1, h2 and so on, that I can change the settings after plotting all the data. How does this work? I have a read a lot that I need an array, but what do I have to change at the fourth line (names(i))?
x = {'2';'3';'4'};names = [strcat('h',x)]for i=[2,3,4]names(i)=plot(xx,yy);endset(h2,'Linewidth',1.5);
Best Answer