append one graph to another
Show older comments

Hi guys, How to append one graph to another? Tried using 'hold on' but it doesn't work. Thanks.
Accepted Answer
More Answers (1)
Mischa Kim
on 19 Feb 2014
You mean something along the lines of:
x1 = 1:50; x2 = 1:10; x3 = 1:10;
y1 = rand(1,50); y2 = rand(1,10); y3 = rand(1,10);
x = [x1 x2+x1(end) x3+x1(end)+x2(end)];
y = [y1 y2 y3];
plot(x,y)
Categories
Find more on Axis Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!