I want to write a loop that creates a plot and concatenates each of them. But the problem is, the variable is initially non-existent, so the concatenation doesn't work. Here is an example:
for i = 1:10
myplot = hcat(myplot,plot(x[i],y[i]))
end
Now, I can solve this problem by doing the first iteration separately. But I was wondering if there is a more "elegant" way.