You are on page 1of 1

a= randn(1,100) ; b = randn(1,150) ;

h(1) = figure; plot(a); h(2) = figure; plot(b);


handleLine = findobj(h,'type','line');
hold on ;
for i = 1 : length(handleLine)
plot(get(handleLine(i),'XData'), get(handleLine(i),'YData')) ;
end

You might also like