x=[1 2 3] ; y=[1 2 3; 1 3 9; 1 9 81]; for i = 1 : 3 f(i) = figure; h(i) = plot(x,y(:,i)) end %%what i want is something like this
f(i).xlabel('input Power [kW]') f(i).xlabel('Energy of the system [kWh]')
This code shows shortly what I want. I generate in a loop a few figures, then afterwards to add the xlabel/ylabel and title. I can access the figure properties with f(i), but I could not find anywhere how to add the labels and the title.
Best Answer